Update of /cvsroot/gaim/gaim/src
In directory sc8-pr-cvs1:/tmp/cvs-serv18216/src
Modified Files:
win_gaim.c
Log Message:
Produce error number on LoadLibrary failure.
Index: win_gaim.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/win_gaim.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -p -r1.5 -r1.6
--- win_gaim.c 27 Oct 2003 16:11:53 -0000 1.5
+++ win_gaim.c 27 Oct 2003 21:04:41 -0000 1.6
@@ -240,9 +240,13 @@ WinMain (struct HINSTANCE__ *hInstance,
if((hmod=LoadLibrary("gaim.dll"))) {
gaim_main = (void*)GetProcAddress(hmod, "gaim_main");
}
+ else
+
if(!gaim_main) {
- MessageBox(NULL, "Error loading gaim.dll entry point.", NULL, MB_OK | MB_TOPMOST);
+ char errbuf[256];
+ sprintf(errbuf, "Error loading gaim.dll entry point. Error: %d", GetLastError());
+ MessageBox(NULL, errbuf, NULL, MB_OK | MB_TOPMOST);
return 0;
}
else
|