Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/win32/win32dep.c Mon Aug 11 18:43:04 2003 +0000 +++ b/src/win32/win32dep.c Mon Aug 11 18:54:38 2003 +0000 @@ -23,6 +23,7 @@ * */ #include <windows.h> +#include <io.h> #include <stdlib.h> #include <stdio.h> #include <winuser.h> @@ -72,7 +73,6 @@ /* * PROTOS */ - BOOL (*MyFlashWindowEx)(PFLASHWINFO pfwi)=NULL; FARPROC wgaim_find_and_loadproc(char*, char*); extern void wgaim_gtkspell_init(); @@ -356,7 +356,7 @@ LCID lcid; /* Check if user set LANG env var */ - if((locale = g_getenv("LANG"))) { + if((locale = (char*)g_getenv("LANG"))) { gaim_debug(GAIM_DEBUG_INFO, "wgaim", "Using locale set by the LANG env var.\n"); goto finish; } @@ -367,7 +367,7 @@ 0, KEY_QUERY_VALUE, &hkey)) { BYTE data[10]; DWORD ds = 10; - if(ERROR_SUCCESS == RegQueryValueEx(hkey, "Installer Language", 0, NULL, &data, &ds)) { + if(ERROR_SUCCESS == RegQueryValueEx(hkey, "Installer Language", 0, NULL, (LPBYTE)&data, &ds)) { gaim_debug(GAIM_DEBUG_INFO, "wgaim", "Using locale set by the installer\n"); if((locale = wgaim_lcid_to_posix(atoi(data)))) goto finish;