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

eliminate VACPP warning & info msgs - see Ticket #1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.