Changeset 21754 for branches/gcc-kmk/src
- Timestamp:
- Oct 27, 2011, 6:49:38 PM (14 years ago)
- Location:
- branches/gcc-kmk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/oleaut32/old/typelib.cpp
r6505 r21754 25 25 #include "itypelib.h" 26 26 27 #if defined(__WIN32OS2__) && !defined(__GNUC__) 28 #define snprintf wsnprintfA 29 #endif 30 27 31 static FILE *_privateLogFile = NULL; 28 32 … … 268 272 guidA = HEAP_strdupWtoA(GetProcessHeap(), 0, guid); 269 273 #ifdef __WIN32OS2__ 270 s printf(keyName, "SOFTWARE\\Classes\\TypeLib\\%s\\%x.%x",274 snprintf(keyName, sizeof(keyName), "SOFTWARE\\Classes\\TypeLib\\%s\\%x.%x", 271 275 guidA, attr->wMajorVerNum, attr->wMinorVerNum); 272 276 #else … … 315 319 CHAR buf[20]; 316 320 /* FIXME: is %u correct? */ 317 #ifdef __WIN32OS2__ 318 sprintf(buf, "%u", attr->wLibFlags); 321 snprintf(buf, strlen(buf), "%u", attr->wLibFlags); 319 322 if (RegSetValueExA(subKey, NULL, 0, REG_SZ, 320 323 (LPBYTE)buf, lstrlenA(buf) + 1) != ERROR_SUCCESS) 321 #else322 snprintf(buf, strlen(buf), "%u", attr->wLibFlags);323 if (RegSetValueExA(subKey, NULL, 0, REG_SZ,324 buf, lstrlenA(buf) + 1) != ERROR_SUCCESS)325 #endif326 324 res = E_FAIL; 327 325 } -
branches/gcc-kmk/src/shell32/shlfolder.c
r21512 r21754 21 21 22 22 23 #ifdef __WIN32OS2__24 #define snprintf(a,b,c,d) sprintf(a,c,d)25 #endif26 23 #include <stdlib.h> 27 24 #include <string.h> … … 47 44 DEFAULT_DEBUG_CHANNEL(shell); 48 45 46 #if defined(__WIN32OS2__) && !defined(__GNUC__) 47 #define snprintf wsnprintfA 48 #endif 49 49 50 50 /***************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.