Changeset 21355 for trunk/src/kernel32/ole2nls.c
- Timestamp:
 - Feb 21, 2010, 5:32:45 PM (16 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  trunk/src/kernel32/ole2nls.c (modified) (7 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/kernel32/ole2nls.c
r21302 r21355 779 779 char acRealKey[128]; 780 780 781 if ( (pacKey = GetLocaleSubkeyName(lctype)) )781 if ( (pacKey = GetLocaleSubkeyName(lctype)) != NULL) 782 782 { 783 783 sprintf( acRealKey, "Control Panel\\International\\%s", pacKey ); … … 786 786 { 787 787 if ( RegSetValueExA( hKey, NULL, 0, REG_SZ, 788 data, strlen(data)+1 ) != ERROR_SUCCESS )788 (LPSTR)data, strlen(data)+1 ) != ERROR_SUCCESS ) 789 789 { 790 790 ERR("SetLocaleInfoA: %s did not work\n", pacKey ); … … 1359 1359 } 1360 1360 1361 /****************************************************************************** 1362 * identityW [Internal] 1363 */ 1364 static WCHAR identityW(WCHAR c) 1365 { 1366 return c; 1367 } 1368 1361 1369 /************************************************************************* 1362 1370 * LCMapStringA [KERNEL32.492] … … 1902 1910 else 1903 1911 { 1912 #ifdef __WIN32OS2__ 1913 WCHAR (*f)(WCHAR)=identityW; 1914 #else 1904 1915 int (*f)(int)=identity; 1916 #endif 1905 1917 1906 1918 if (dstlen==0) … … 2150 2162 its possible that it fails when the time looks like ss:mm:hh as example*/ 2151 2163 if (tflags & (TIME_NOMINUTESORSECONDS)) 2152 { if ((pos = strstr ( format, ":mm")) )2164 { if ((pos = strstr ( format, ":mm")) != NULL) 2153 2165 { memcpy ( pos, pos+3, strlen(format)-(pos-format)-2 ); 2154 2166 } 2155 2167 } 2156 2168 if (tflags & (TIME_NOSECONDS)) 2157 { if ((pos = strstr ( format, ":ss")) )2169 { if ((pos = strstr ( format, ":ss")) != NULL) 2158 2170 { memcpy ( pos, pos+3, strlen(format)-(pos-format)-2 ); 2159 2171 } … … 3745 3757 } 3746 3758 else 3747 { thistime = xtime;3759 { thistime = (LPSYSTEMTIME)xtime; 3748 3760 /* Check that hour,min and sec is in range */ 3749 3761 } … … 3794 3806 } 3795 3807 else 3796 { thistime = xtime;3808 { thistime = (LPSYSTEMTIME)xtime; 3797 3809 } 3798 3810  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  