diff options
author | Chris Lattner <sabre@nondot.org> | 2006-07-07 17:26:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-07-07 17:26:47 +0000 |
commit | a75df5e22c08fa28274e29610958952f84c3447b (patch) | |
tree | f59d657f52a146f0397a23c28a1135e35f2cb77a | |
parent | b30f735cf3fa9b2cb69b3382c1f0c3ae1c7bcd26 (diff) | |
download | bcm5719-llvm-a75df5e22c08fa28274e29610958952f84c3447b.tar.gz bcm5719-llvm-a75df5e22c08fa28274e29610958952f84c3447b.zip |
Fix this impl
llvm-svn: 29055
-rw-r--r-- | llvm/lib/System/Win32/Win32.h | 2 |
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); |