Mercurial > pidgin
changeset 30466:35d8acf675e9
Display the reason LoadLibrary didn't succeed in the debug log
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 31 Aug 2010 01:23:28 +0000 |
parents | 31c2dd632ffa |
children | 3d045343e04d |
files | libpurple/win32/win32dep.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/win32/win32dep.c Tue Aug 31 00:53:15 2010 +0000 +++ b/libpurple/win32/win32dep.c Tue Aug 31 01:23:28 2010 +0000 @@ -82,7 +82,8 @@ 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; }