From 61ae8201a77c4e2b9e60d40656d8e64d6629182f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 7 Jul 2006 17:26:47 +0000 Subject: [PATCH] Fix this impl git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29055 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/Win32/Win32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/System/Win32/Win32.h b/lib/System/Win32/Win32.h index d1029916605..ef2d66fee42 100644 --- a/lib/System/Win32/Win32.h +++ b/lib/System/Win32/Win32.h @@ -25,7 +25,7 @@ #include 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); -- 2.34.1