commit | 0bb641ad59a279e9d2c9d0f2d402d0ab90479972 | [log] [tgz] |
---|---|---|
author | Piotr Caban <piotr@codeweavers.com> | Tue Oct 18 15:22:46 2011 +0200 |
committer | Alexandre Julliard <julliard@winehq.org> | Tue Oct 18 18:29:19 2011 +0200 |
tree | ef36065a5c564bb9e80d5e81573679d13f3c7ba8 | |
parent | ca293d442be8ad78c176f8ee82927e42b2cfc6e5 [diff] |
msvcrt: Initialize all ctype fields.
diff --git a/dlls/msvcrt/locale.c b/dlls/msvcrt/locale.c index c64e3d9..b196cee 100644 --- a/dlls/msvcrt/locale.c +++ b/dlls/msvcrt/locale.c
@@ -805,6 +805,9 @@ for(i=1; i<257; i++) { buf[0] = i-1; + /* builtin GetStringTypeA doesn't set output to 0 on invalid input */ + loc->locinfo->ctype1[i] = 0; + GetStringTypeA(lcid[MSVCRT_LC_CTYPE], CT_CTYPE1, buf, 1, loc->locinfo->ctype1+i); }