diff -r 36b1f6ba0564 -r 6d93866a4a3f pidgin/win32/gtkwin32dep.c --- a/pidgin/win32/gtkwin32dep.c Thu Sep 06 05:47:27 2012 +0100 +++ b/pidgin/win32/gtkwin32dep.c Fri Sep 07 15:06:40 2012 +0100 @@ -377,7 +377,8 @@ } void winpidgin_init(HINSTANCE hint) { - FARPROC proc; + typedef void (__cdecl* LPFNSETLOGFILE)(const LPCSTR); + LPFNSETLOGFILE MySetLogFile; gchar *exchndl_dll_path; purple_debug_info("winpidgin", "winpidgin_init start\n"); @@ -385,10 +386,10 @@ exe_hInstance = hint; exchndl_dll_path = g_build_filename(wpurple_install_dir(), "exchndl.dll", NULL); - proc = wpurple_find_and_loadproc(exchndl_dll_path, "SetLogFile"); + MySetLogFile = (LPFNSETLOGFILE) wpurple_find_and_loadproc(exchndl_dll_path, "SetLogFile"); g_free(exchndl_dll_path); exchndl_dll_path = NULL; - if (proc) { + if (MySetLogFile) { gchar *debug_dir, *locale_debug_dir; debug_dir = g_build_filename(purple_user_dir(), "pidgin.RPT", NULL); @@ -396,7 +397,7 @@ purple_debug_info("winpidgin", "Setting exchndl.dll LogFile to %s\n", debug_dir); - (proc)(locale_debug_dir); + MySetLogFile(locale_debug_dir); g_free(debug_dir); g_free(locale_debug_dir);