DescriptionFixes to possible GetLastError bugs
GetLastError needs to be called immediately after the function whose
error code it is retrieving. This has been made particularly important
by VS 2015 which sometimes clears the error code when allocating memory.
See bug 528394 for details of the underlying issue.
These changes came from code inspection that looked for patterns that
appeared wrong. None of the issues look critical, although that depends
on what callers do with the error codes.
BUG=529981
Committed: https://crrev.com/4af09d1d3452796370999fcb6add64884257e80b
Cr-Commit-Position: refs/heads/master@{#349481}
Patch Set 1 #
Total comments: 7
Patch Set 2 : Removed some sandbox changes #
Messages
Total messages: 13 (4 generated)
|