pidgin: b249084b: Display the reason LoadLibrary didn't su...

datallah at pidgin.im datallah at pidgin.im
Mon Aug 30 22:01:36 EDT 2010


----------------------------------------------------------------------
Revision: b249084b6c452f76d249f5dd1b5335d9838a9927
Parent:   b48d2141b875b2aa76ed704628366486a34a529a
Author:   datallah at pidgin.im
Date:     08/30/10 21:23:28
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b249084b6c452f76d249f5dd1b5335d9838a9927

Changelog: 

Display the reason LoadLibrary didn't succeed in the debug log

Changes against parent b48d2141b875b2aa76ed704628366486a34a529a

  patched  libpurple/win32/win32dep.c

-------------- next part --------------
============================================================
--- libpurple/win32/win32dep.c	e14d7c31f0c286696d1052eb5178ac3850b5c50d
+++ libpurple/win32/win32dep.c	d62e125b1de03235763e5f361b9a93c2d504fa6a
@@ -82,7 +82,8 @@ FARPROC wpurple_find_and_loadproc(const 
 	if(!(hmod = GetModuleHandleW(wc_dllname))) {
 		purple_debug_warning("wpurple", "%s not already loaded; loading it...\n", dllname);
 		if(!(hmod = LoadLibraryW(wc_dllname))) {
-			purple_debug_error("wpurple", "Could not load: %s\n", dllname);
+			purple_debug_error("wpurple", "Could not load: %s (%s)\n", dllname,
+				g_win32_error_message(GetLastError()));
 			g_free(wc_dllname);
 			return NULL;
 		}


More information about the Commits mailing list