1
0
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:
cyberbotx
2009-02-17 02:02:20 +00:00
parent 7af9e42d21
commit 3fe5aa037a
15 changed files with 37 additions and 28 deletions
+5 -5
View File
@@ -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