diff options
-rw-r--r-- | lib/System/Win32/Win32.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Win32/Win32.h b/lib/System/Win32/Win32.h index d102991660..ef2d66fee4 100644 --- a/lib/System/Win32/Win32.h +++ b/lib/System/Win32/Win32.h @@ -25,7 +25,7 @@ #include <string> inline bool GetError(const std::string &Prefix, std::string *Dest) { - if (Dest == 0) return; + if (Dest == 0) return true; char *buffer = NULL; FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, (LPSTR)&buffer, 1, NULL); |