Changeset 21355 for trunk/src/kernel32/codepage.c
- Timestamp:
- Feb 21, 2010, 5:32:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/codepage.c
r10191 r21355 97 97 if (!ansi_cptable) init_codepages(); /* just in case */ 98 98 99 if ((table = get_locale_cp( lcid, LOCALE_IDEFAULTANSICODEPAGE )) ) ansi_cptable = table;100 if ((table = get_locale_cp( lcid, LOCALE_IDEFAULTMACCODEPAGE )) ) mac_cptable = table;101 if ((table = get_locale_cp( lcid, LOCALE_IDEFAULTCODEPAGE )) ) oem_cptable = table;99 if ((table = get_locale_cp( lcid, LOCALE_IDEFAULTANSICODEPAGE )) != NULL) ansi_cptable = table; 100 if ((table = get_locale_cp( lcid, LOCALE_IDEFAULTMACCODEPAGE )) != NULL) mac_cptable = table; 101 if ((table = get_locale_cp( lcid, LOCALE_IDEFAULTCODEPAGE )) != NULL) oem_cptable = table; 102 102 103 103 TRACE( "ansi=%03d oem=%03d mac=%03d\n", ansi_cptable->info.codepage, … … 501 501 502 502 countW = MultiByteToWideChar(cp, 0, src, count, NULL, 0); 503 if((srcW = HeapAlloc(GetProcessHeap(), 0, countW * sizeof(WCHAR))) )503 if((srcW = HeapAlloc(GetProcessHeap(), 0, countW * sizeof(WCHAR))) != NULL) 504 504 { 505 505 MultiByteToWideChar(cp, 0, src, count, srcW, countW);
Note:
See TracChangeset
for help on using the changeset viewer.