Alexandre Julliard : msvcrt: Initialize exported common variables to fix the build on Mac OS.
Alexandre Julliard
julliard at winehq.org
Fri Apr 16 10:56:00 CDT 2010
Module: wine
Branch: master
Commit: d4880b7a1f929997c60e69da77a8b1ca07ee71af
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d4880b7a1f929997c60e69da77a8b1ca07ee71af
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Apr 16 12:01:35 2010 +0200
msvcrt: Initialize exported common variables to fix the build on Mac OS.
---
dlls/msvcrt/ctype.c | 2 +-
dlls/msvcrt/locale.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/msvcrt/ctype.c b/dlls/msvcrt/ctype.c
index 7baa572..7e7d9f0 100644
--- a/dlls/msvcrt/ctype.c
+++ b/dlls/msvcrt/ctype.c
@@ -55,7 +55,7 @@ WORD MSVCRT__ctype [257] = {
* changes to affect ctypes (i.e. isleadbyte), we use a second table
* and update its flags whenever the current locale changes.
*/
-WORD* MSVCRT__pctype;
+WORD* MSVCRT__pctype = NULL;
/*********************************************************************
* __pctype_func (MSVCRT.@)
diff --git a/dlls/msvcrt/locale.c b/dlls/msvcrt/locale.c
index 55d2ca9..59d94ae 100644
--- a/dlls/msvcrt/locale.c
+++ b/dlls/msvcrt/locale.c
@@ -44,8 +44,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
#define MAX_ELEM_LEN 64 /* Max length of country/language/CP string */
#define MAX_LOCALE_LENGTH 256
MSVCRT__locale_t MSVCRT_locale = NULL;
-int MSVCRT___lc_codepage;
-int MSVCRT___lc_collate_cp;
+int MSVCRT___lc_codepage = 0;
+int MSVCRT___lc_collate_cp = 0;
HANDLE MSVCRT___lc_handle[MSVCRT_LC_MAX - MSVCRT_LC_MIN + 1] = { 0 };
unsigned char charmax = CHAR_MAX;
More information about the wine-cvs
mailing list