Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
some WinAPI functions SetLastError(0) on success, which is bad because it can hide previous errors. More...
#include <wutil.h>
Public Member Functions | |
WinScopedPreserveLastError () | |
~WinScopedPreserveLastError () | |
Private Attributes | |
DWORD | m_lastError |
some WinAPI functions SetLastError(0) on success, which is bad because it can hide previous errors.
this class takes care of restoring the previous value.
|
inline |
|
inline |
|
private |