Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
[Merge chakra-core/ChakraCore@1548eeaf78] [MERGE #3544 @MikeHolman] f…
Browse files Browse the repository at this point in the history
…ix bugs in MemoryOperationLastError

Merge pull request #3544 from MikeHolman:memlasterror

Fixes issues where RecordLastError was not calling GLE correctly, and RecordError was unnecessarily calling HRESULT_FROM_WIN32.

OS: 13294698
  • Loading branch information
chakrabot authored and MSLaguana committed Sep 25, 2017
1 parent 592041a commit c432f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deps/chakrashim/core/lib/Common/Memory/PageAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ class MemoryOperationLastError
#if ENABLE_OOP_NATIVE_CODEGEN
if (MemOpLastError == S_OK)
{
MemOpLastError = GetLastError();
MemOpLastError = HRESULT_FROM_WIN32(::GetLastError());
}
#endif
}
Expand All @@ -407,7 +407,7 @@ class MemoryOperationLastError
#if ENABLE_OOP_NATIVE_CODEGEN
if (MemOpLastError == S_OK)
{
MemOpLastError = HRESULT_FROM_WIN32(error);
MemOpLastError = error;
}
#endif
}
Expand Down

0 comments on commit c432f55

Please sign in to comment.