diff -r ad325d002a4f -r dc1c7b09a058 pidgin/win32/gtkwin32dep.c --- a/pidgin/win32/gtkwin32dep.c Thu Apr 05 03:00:48 2007 +0000 +++ b/pidgin/win32/gtkwin32dep.c Thu Apr 05 04:25:11 2007 +0000 @@ -68,10 +68,14 @@ * PUBLIC CODE */ -HINSTANCE winpidgin_hinstance(void) { +HINSTANCE winpidgin_exe_hinstance(void) { return exe_hInstance; } +HINSTANCE winpidgin_dll_hinstance(void) { + return dll_hInstance; +} + int winpidgin_gz_decompress(const char* in, const char* out) { gzFile fin; FILE *fout; @@ -224,7 +228,7 @@ wcx.lpfnWndProc = message_window_handler; wcx.cbClsExtra = 0; wcx.cbWndExtra = 0; - wcx.hInstance = winpidgin_hinstance(); + wcx.hInstance = winpidgin_exe_hinstance(); wcx.hIcon = NULL; wcx.hCursor = NULL; wcx.hbrBackground = NULL; @@ -236,7 +240,7 @@ /* Create the window */ if(!(win_hwnd = CreateWindow(wname, TEXT("WinpidginMsgWin"), 0, 0, 0, 0, 0, - NULL, NULL, winpidgin_hinstance(), 0))) { + NULL, NULL, winpidgin_exe_hinstance(), 0))) { purple_debug_error("winpidgin", "Unable to create message window.\n"); return NULL;