mirror of
https://github.com/anope/anope.git
synced 2026-06-25 08:56:39 +02:00
Fixed Windows build
This commit is contained in:
+1
-1
@@ -1286,7 +1286,7 @@ const Anope::string Anope::LastError()
|
||||
char errbuf[513];
|
||||
DWORD err = GetLastError();
|
||||
if (!err)
|
||||
return NULL;
|
||||
return "";
|
||||
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, err, 0, errbuf, 512, NULL);
|
||||
return errbuf;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user