Changeset 21355 for trunk/src


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

eliminate VACPP warning & info msgs - see Ticket #1

Location:
trunk/src/kernel32
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/KERNEL32.DEF

    r21332 r21355  
    542542     GetUserDefaultLCID         = _GetUserDefaultLCID@0       @425
    543543     GetUserDefaultLangID       = _GetUserDefaultLangID@0     @426
    544      GetVDMCurrentDirectories   = _GetVDMCurrentDirectories@4           ;NT
     544;     GetVDMCurrentDirectories   = _GetVDMCurrentDirectories@4           ;NT
    545545     GetVersion                 = _GetVersion@0               @427
    546546     GetVersionExA              = _GetVersionExA@4            @428
  • 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);
  • trunk/src/kernel32/dosdevice.cpp

    r9663 r21355  
    169169        strcpy(buffer,"\\DEV\\");
    170170        strcat(buffer,devname);
    171         if ((s=strchr(buffer,':'))) *s='\0';
     171        if ((s=strchr(buffer,':')) != NULL) *s='\0';
    172172        lstrcpynA(target,buffer,bufsize);
    173173        return strlen(buffer)+1;
  • trunk/src/kernel32/environ.cpp

    r21302 r21355  
    245245        if (*src != '%')
    246246        {
    247             if ((p = strchr( src, '%' ))) len = p - src;
     247            if ((p = strchr( src, '%' )) != NULL) len = p - src;
    248248            else len = strlen(src);
    249249            var = src;
     
    252252        else  /* we are at the start of a variable */
    253253        {
    254             if ((p = strchr( src + 1, '%' )))
     254            if ((p = strchr( src + 1, '%' )) != NULL)
    255255            {
    256256                len = p - src - 1;  /* Length of the variable name */   
    257257                if ((var = ENV_FindVariable( GetEnvironmentStringsA(),
    258                                              src + 1, len )))
     258                                             src + 1, len )) != NULL)
    259259                {
    260260                    src += len + 2;  /* Skip the variable name */
  • trunk/src/kernel32/heapstring.cpp

    r10539 r21355  
    348348
    349349    WCHAR *p = dest;
    350     while ((*p++ = *src++));
     350    while ((*p++ = *src++) != 0);
    351351
    352352    return dest;
  • trunk/src/kernel32/ole2nls.c

    r21302 r21355  
    779779    char    acRealKey[128];
    780780
    781     if ( (pacKey = GetLocaleSubkeyName(lctype)) )
     781    if ( (pacKey = GetLocaleSubkeyName(lctype)) != NULL)
    782782    {
    783783        sprintf( acRealKey, "Control Panel\\International\\%s", pacKey );
     
    786786        {
    787787            if ( RegSetValueExA( hKey, NULL, 0, REG_SZ,
    788                                  data, strlen(data)+1 ) != ERROR_SUCCESS )
     788                                 (LPSTR)data, strlen(data)+1 ) != ERROR_SUCCESS )
    789789            {
    790790                ERR("SetLocaleInfoA: %s did not work\n", pacKey );
     
    13591359}
    13601360
     1361/******************************************************************************
     1362 *      identityW   [Internal]
     1363 */
     1364static WCHAR identityW(WCHAR c)
     1365{
     1366  return c;
     1367}
     1368
    13611369/*************************************************************************
    13621370 *              LCMapStringA                [KERNEL32.492]
     
    19021910  else
    19031911  {
     1912#ifdef __WIN32OS2__
     1913    WCHAR (*f)(WCHAR)=identityW;
     1914#else
    19041915    int (*f)(int)=identity;
     1916#endif
    19051917
    19061918    if (dstlen==0)
     
    21502162   its possible that it fails when the time looks like ss:mm:hh as example*/
    21512163   if (tflags & (TIME_NOMINUTESORSECONDS))
    2152    { if ((pos = strstr ( format, ":mm")))
     2164   { if ((pos = strstr ( format, ":mm")) != NULL)
    21532165     { memcpy ( pos, pos+3, strlen(format)-(pos-format)-2 );
    21542166     }
    21552167   }
    21562168   if (tflags & (TIME_NOSECONDS))
    2157    { if ((pos = strstr ( format, ":ss")))
     2169   { if ((pos = strstr ( format, ":ss")) != NULL)
    21582170     { memcpy ( pos, pos+3, strlen(format)-(pos-format)-2 );
    21592171     }
     
    37453757  }
    37463758  else
    3747   { thistime = xtime;
     3759  { thistime = (LPSYSTEMTIME)xtime;
    37483760  /* Check that hour,min and sec is in range */
    37493761  }
     
    37943806    }
    37953807    else
    3796     { thistime = xtime;
     3808    { thistime = (LPSYSTEMTIME)xtime;
    37973809    }
    37983810
  • trunk/src/kernel32/profile.cpp

    r10574 r21355  
    986986    InitializeCriticalSection( &PROFILE_CritSect );
    987987    MakeCriticalSectionGlobal( &PROFILE_CritSect );
     988    return 1;
    988989}
    989990
     
    14041405            while(*string) {
    14051406                LPSTR buf=HEAP_strdupA( GetProcessHeap(), 0, string );
    1406                 if((p=strchr( buf, '='))){
     1407                if((p=strchr( buf, '=')) != NULL){
    14071408                    *p='\0';
    14081409                    ret = PROFILE_SetString( section, buf, p+1 );
  • trunk/src/kernel32/winimagepeldr.cpp

    r10397 r21355  
    503503    if(!(dwFlags & FLAG_PELDR_LOADASDATAFILE))
    504504    {
    505         if(tlsDir = (IMAGE_TLS_DIRECTORY *)ImageDirectoryOffset(peview, IMAGE_DIRECTORY_ENTRY_TLS))
     505        if((tlsDir = (IMAGE_TLS_DIRECTORY *)ImageDirectoryOffset(peview, IMAGE_DIRECTORY_ENTRY_TLS)) != NULL)
    506506        {
    507507            Section *sect;
Note: See TracChangeset for help on using the changeset viewer.