mirror of
https://github.com/anope/anope.git
synced 2026-07-03 11:33:12 +02:00
Fix numerous errors in Win32 building under Visual Studio due to the many changes to trunk. Trunk now builds under Windows like it should.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2106 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+5
-5
@@ -10,18 +10,18 @@
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
*/
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
|
||||
const char *dlerror()
|
||||
{
|
||||
static char errbuf[513];
|
||||
DWORD err = GetLastError();
|
||||
if (err == 0)
|
||||
if (!err)
|
||||
return NULL;
|
||||
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM |
|
||||
FORMAT_MESSAGE_IGNORE_INSERTS, NULL, err, 0, errbuf, 512,
|
||||
NULL);
|
||||
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