Closed rozmansi closed 3 years ago
PrintError() calls FormatMessage() and LocalFree() both of which reset the GetLastError() code. Should the original error code be preserved, it must be saved before calling PrintError().
PrintError()
FormatMessage()
LocalFree()
GetLastError()
PrintError()
callsFormatMessage()
andLocalFree()
both of which reset theGetLastError()
code. Should the original error code be preserved, it must be saved before callingPrintError()
.