changeset 7356:be11a6f2fe00

[gaim-migrate @ 7949] Produce error number on LoadLibrary failure. committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Mon, 27 Oct 2003 21:04:41 +0000
parents ef0684dfdf74
children eb0acf8c8f1e
files src/win_gaim.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/win_gaim.c	Mon Oct 27 19:53:34 2003 +0000
+++ b/src/win_gaim.c	Mon Oct 27 21:04:41 2003 +0000
@@ -240,9 +240,13 @@
         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