mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 06:06:19 +00:00
Fix this impl
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29055 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5c72a3ae10
commit
61ae8201a7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user