[MERGE #3544 @MikeHolman] fix bugs in MemoryOperationLastError
[MERGE #3544 @MikeHolman] fix 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

mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore