ChangeSet ID: 10988 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard@wine.codeweavers.com 2004/02/06 20:21:31 Modified files: dlls/kernel : locale.c Log message: Added missing parameter check in SetLocaleInfoA revealed by the profile code changes. Patch: http://cvs.winehq.org/patch.py?id=10988 Old revision New revision Changes Path 1.32 1.33 +6 -0 wine/dlls/kernel/locale.c Index: wine/dlls/kernel/locale.c diff -u -p wine/dlls/kernel/locale.c:1.32 wine/dlls/kernel/locale.c:1.33 --- wine/dlls/kernel/locale.c:1.32 Thu May 23 18:58:34 2013 +++ wine/dlls/kernel/locale.c Thu May 23 18:58:34 2013 @@ -1034,6 +1034,12 @@ BOOL WINAPI SetLocaleInfoA(LCID lcid, LC lcid = ConvertDefaultLocale(lcid); if (!(lctype & LOCALE_USE_CP_ACP)) codepage = get_lcid_codepage( lcid ); + + if (!data) + { + SetLastError( ERROR_INVALID_PARAMETER ); + return FALSE; + } len = MultiByteToWideChar( codepage, 0, data, -1, NULL, 0 ); if (!(strW = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR) ))) {