From 9db3c82bb7b06ee9abbb9e8c79e705d740932f14 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Sat, 26 Jul 2008 11:45:59 +0000 Subject: [PATCH] - Sync with Wine (null-initializing some exported data). svn path=/trunk/; revision=34805 --- reactos/lib/sdk/crt/locale/locale.c | 12 ++++++------ reactos/lib/sdk/crt/stdio/file.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/reactos/lib/sdk/crt/locale/locale.c b/reactos/lib/sdk/crt/locale/locale.c index 297c7a6fa80..f9637fea38e 100644 --- a/reactos/lib/sdk/crt/locale/locale.c +++ b/reactos/lib/sdk/crt/locale/locale.c @@ -27,7 +27,7 @@ */ #define MAX_ELEM_LEN 64 /* Max length of country/language/CP string */ -unsigned char MSVCRT_mbctype[257]; +unsigned char MSVCRT_mbctype[257] = { 0 }; static int g_mbcp_is_multibyte = 0; /* It seems that the data about valid trail bytes is not available from kernel32 @@ -49,11 +49,11 @@ static struct cp_extra_info_t g_cpextrainfo[] = }; -char MSVCRT_current_lc_all[MAX_LOCALE_LENGTH]; -LCID MSVCRT_current_lc_all_lcid; -int MSVCRT___lc_codepage; -int MSVCRT___lc_collate_cp; -HANDLE MSVCRT___lc_handle[MSVCRT_LC_MAX - MSVCRT_LC_MIN + 1]; +char MSVCRT_current_lc_all[MAX_LOCALE_LENGTH] = { 0 }; +LCID MSVCRT_current_lc_all_lcid = 0; +int MSVCRT___lc_codepage = 0; +int MSVCRT___lc_collate_cp = 0; +HANDLE MSVCRT___lc_handle[MSVCRT_LC_MAX - MSVCRT_LC_MIN + 1] = { 0 }; /* MT */ #define LOCK_LOCALE _mlock(_SETLOCALE_LOCK); diff --git a/reactos/lib/sdk/crt/stdio/file.c b/reactos/lib/sdk/crt/stdio/file.c index 3c26ac9a0ae..568975fc0db 100644 --- a/reactos/lib/sdk/crt/stdio/file.c +++ b/reactos/lib/sdk/crt/stdio/file.c @@ -96,7 +96,7 @@ typedef struct { /*static */ioinfo fdesc[MAX_FILES]; -FILE _iob[3]; +FILE _iob[3] = { { 0 } }; static int fdstart = 3; /* first unallocated fd */ static int fdend = 3; /* highest allocated fd */