diff options
Diffstat (limited to 'api/entry.h')
-rw-r--r-- | api/entry.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/entry.h b/api/entry.h index ac37680..4f925b1 100644 --- a/api/entry.h +++ b/api/entry.h @@ -26,6 +26,8 @@ #endif #pragma warning(disable : 4127) /* conditional expression is constant */ +#define RET_ERROR(Ret, Error) ((Error) == ERROR_SUCCESS ? (Ret) : (SetLastError(Error), 0)) + extern HINSTANCE ResourceModule; extern HANDLE ModuleHeap; extern SECURITY_ATTRIBUTES SecurityAttributes; |