Mercurial > pidgin.yaz
comparison src/win32/win32dep.c @ 6425:26b739bc9f1a
[gaim-migrate @ 6933]
Warnings and gaim_debugs
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Mon, 11 Aug 2003 18:54:38 +0000 |
parents | 9281be45e046 |
children | ae4c3abbaac1 |
comparison
equal
deleted
inserted
replaced
6424:8e7f1662d802 | 6425:26b739bc9f1a |
---|---|
21 * along with this program; if not, write to the Free Software | 21 * along with this program; if not, write to the Free Software |
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 * | 23 * |
24 */ | 24 */ |
25 #include <windows.h> | 25 #include <windows.h> |
26 #include <io.h> | |
26 #include <stdlib.h> | 27 #include <stdlib.h> |
27 #include <stdio.h> | 28 #include <stdio.h> |
28 #include <winuser.h> | 29 #include <winuser.h> |
29 | 30 |
30 #include <gtk/gtk.h> | 31 #include <gtk/gtk.h> |
70 HINSTANCE gaimdll_hInstance = 0; | 71 HINSTANCE gaimdll_hInstance = 0; |
71 | 72 |
72 /* | 73 /* |
73 * PROTOS | 74 * PROTOS |
74 */ | 75 */ |
75 | |
76 BOOL (*MyFlashWindowEx)(PFLASHWINFO pfwi)=NULL; | 76 BOOL (*MyFlashWindowEx)(PFLASHWINFO pfwi)=NULL; |
77 FARPROC wgaim_find_and_loadproc(char*, char*); | 77 FARPROC wgaim_find_and_loadproc(char*, char*); |
78 extern void wgaim_gtkspell_init(); | 78 extern void wgaim_gtkspell_init(); |
79 | 79 |
80 /* | 80 /* |
354 char* locale=NULL; | 354 char* locale=NULL; |
355 char envstr[25]; | 355 char envstr[25]; |
356 LCID lcid; | 356 LCID lcid; |
357 | 357 |
358 /* Check if user set LANG env var */ | 358 /* Check if user set LANG env var */ |
359 if((locale = g_getenv("LANG"))) { | 359 if((locale = (char*)g_getenv("LANG"))) { |
360 gaim_debug(GAIM_DEBUG_INFO, "wgaim", "Using locale set by the LANG env var.\n"); | 360 gaim_debug(GAIM_DEBUG_INFO, "wgaim", "Using locale set by the LANG env var.\n"); |
361 goto finish; | 361 goto finish; |
362 } | 362 } |
363 | 363 |
364 /* Check reg key set at install time */ | 364 /* Check reg key set at install time */ |
365 if(ERROR_SUCCESS == RegOpenKeyEx(HKEY_CURRENT_USER, | 365 if(ERROR_SUCCESS == RegOpenKeyEx(HKEY_CURRENT_USER, |
366 "SOFTWARE\\gaim", | 366 "SOFTWARE\\gaim", |
367 0, KEY_QUERY_VALUE, &hkey)) { | 367 0, KEY_QUERY_VALUE, &hkey)) { |
368 BYTE data[10]; | 368 BYTE data[10]; |
369 DWORD ds = 10; | 369 DWORD ds = 10; |
370 if(ERROR_SUCCESS == RegQueryValueEx(hkey, "Installer Language", 0, NULL, &data, &ds)) { | 370 if(ERROR_SUCCESS == RegQueryValueEx(hkey, "Installer Language", 0, NULL, (LPBYTE)&data, &ds)) { |
371 gaim_debug(GAIM_DEBUG_INFO, "wgaim", "Using locale set by the installer\n"); | 371 gaim_debug(GAIM_DEBUG_INFO, "wgaim", "Using locale set by the installer\n"); |
372 if((locale = wgaim_lcid_to_posix(atoi(data)))) | 372 if((locale = wgaim_lcid_to_posix(atoi(data)))) |
373 goto finish; | 373 goto finish; |
374 } | 374 } |
375 } | 375 } |