cmperr.cpp 732 B

12345678910111213141516171819
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #include "ParserPch.h"
  6. ParseExceptionObject::ParseExceptionObject(HRESULT hr, LPCWSTR stringOneIn, LPCWSTR stringTwoIn)
  7. {
  8. m_hr = hr;
  9. stringOne = SysAllocString(stringOneIn);
  10. stringTwo = SysAllocString(stringTwoIn);
  11. Assert(FAILED(hr));
  12. }
  13. ParseExceptionObject::~ParseExceptionObject()
  14. {
  15. SysFreeString(stringOne);
  16. SysFreeString(stringTwo);
  17. }