aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/Win32/Win32.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-07 17:26:47 +0000
committerChris Lattner <sabre@nondot.org>2006-07-07 17:26:47 +0000
commit61ae8201a77c4e2b9e60d40656d8e64d6629182f (patch)
treed8798c4ddb3e60462f013a734cbf85f0c365e375 /lib/System/Win32/Win32.h
parent5c72a3ae106d8d1dd6aa7e573948dac4102aca7b (diff)
downloadexternal_llvm-61ae8201a77c4e2b9e60d40656d8e64d6629182f.zip
external_llvm-61ae8201a77c4e2b9e60d40656d8e64d6629182f.tar.gz
external_llvm-61ae8201a77c4e2b9e60d40656d8e64d6629182f.tar.bz2
Fix this impl
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29055 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32/Win32.h')
-rw-r--r--lib/System/Win32/Win32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Win32/Win32.h b/lib/System/Win32/Win32.h
index d102991..ef2d66f 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);