Ignore:
Timestamp:
Feb 21, 2010, 5:32:45 PM (15 years ago)
Author:
rlwalsh
Message:

eliminate VACPP warning & info msgs - see Ticket #1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/codepage.c

    r10191 r21355  
    9797    if (!ansi_cptable) init_codepages();  /* just in case */
    9898
    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;
    102102
    103103    TRACE( "ansi=%03d oem=%03d mac=%03d\n", ansi_cptable->info.codepage,
     
    501501
    502502    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)
    504504    {
    505505        MultiByteToWideChar(cp, 0, src, count, srcW, countW);
Note: See TracChangeset for help on using the changeset viewer.