Changeset 21869 for branches/gcc-kmk/testapp/threads/threads.c
- Timestamp:
- Dec 8, 2011, 9:46:09 PM (14 years ago)
- File:
-
- 1 edited
-
branches/gcc-kmk/testapp/threads/threads.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/testapp/threads/threads.c
r21614 r21869 21 21 #include <strsafe.h> 22 22 #else 23 #include <stdio.h> 23 24 #include <stdarg.h> 24 25 void StringCchPrintf(LPTSTR pszDest, size_t cchDest, … … 241 242 (lstrlen((LPCTSTR) lpMsgBuf) + lstrlen((LPCTSTR) lpszFunction) + 40) * sizeof(TCHAR)); 242 243 StringCchPrintf((LPTSTR)lpDisplayBuf, 243 LocalSize( lpDisplayBuf) / sizeof(TCHAR),244 LocalSize((HLOCAL)lpDisplayBuf) / sizeof(TCHAR), 244 245 TEXT("%s failed with error %d: %s"), 245 246 lpszFunction, dw, lpMsgBuf); … … 248 249 // Free error-handling buffer allocations. 249 250 250 LocalFree( lpMsgBuf);251 LocalFree( lpDisplayBuf);252 } 253 251 LocalFree((HLOCAL)lpMsgBuf); 252 LocalFree((HLOCAL)lpDisplayBuf); 253 } 254
Note:
See TracChangeset
for help on using the changeset viewer.
