Alexandre Julliard : kernel32: Fix a compiler warning on Mac OS.
Alexandre Julliard
julliard at winehq.org
Thu Aug 21 10:03:06 CDT 2008
Module: wine
Branch: master
Commit: 49421014b79bdf21027c640a143d8b28b6eaab47
URL: http://source.winehq.org/git/wine.git/?a=commit;h=49421014b79bdf21027c640a143d8b28b6eaab47
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Aug 21 16:04:58 2008 +0200
kernel32: Fix a compiler warning on Mac OS.
---
dlls/kernel32/locale.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c
index 0366894..8aedacb 100644
--- a/dlls/kernel32/locale.c
+++ b/dlls/kernel32/locale.c
@@ -2875,7 +2875,7 @@ void LOCALE_Init(void)
CFStringGetCString( user_locale_string_ref, user_locale, sizeof(user_locale), kCFStringEncodingUTF8 );
CFRelease( user_locale_ref );
/* Strip modifiers because setlocale() can't parse them. */
- if (p = strchr( user_locale, '@' )) *p = 0;
+ if ((p = strchr( user_locale, '@' ))) *p = 0;
if (!strchr( user_locale, '.' )) strcat( user_locale, ".UTF-8" );
unix_cp = CP_UTF8; /* default to utf-8 even if we don't get a valid locale */
setenv( "LANG", user_locale, 0 );
More information about the wine-cvs
mailing list