summaryrefslogtreecommitdiffstats
path: root/llvm/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
commita75df5e22c08fa28274e29610958952f84c3447b (patch)
treef59d657f52a146f0397a23c28a1135e35f2cb77a /llvm/lib/System/Win32/Win32.h
parentb30f735cf3fa9b2cb69b3382c1f0c3ae1c7bcd26 (diff)
downloadbcm5719-llvm-a75df5e22c08fa28274e29610958952f84c3447b.tar.gz
bcm5719-llvm-a75df5e22c08fa28274e29610958952f84c3447b.zip
Fix this impl
llvm-svn: 29055
Diffstat (limited to 'llvm/lib/System/Win32/Win32.h')
-rw-r--r--llvm/lib/System/Win32/Win32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Win32/Win32.h b/llvm/lib/System/Win32/Win32.h
index d1029916605..ef2d66fee42 100644
--- a/llvm/lib/System/Win32/Win32.h
+++ b/llvm/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);
OpenPOWER on IntegriCloud