- Timestamp:
- Aug 6, 1999, 2:15:25 PM (26 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/misc.cpp
r435 r436 1 /* $Id: misc.cpp,v 1. 5 1999-08-06 12:14:12phaller Exp $ */1 /* $Id: misc.cpp,v 1.6 1999-08-06 12:15:25 phaller Exp $ */ 2 2 3 3 /* … … 246 246 int SYSTEM EXPORT WriteLog(char *tekst, ...) 247 247 { 248 //USHORT sel = RestoreOS2FS();248 USHORT sel = RestoreOS2FS(); 249 249 va_list argptr; 250 250 … … 269 269 } 270 270 271 //SetFS(sel);271 SetFS(sel); 272 272 return 1; 273 273 } … … 275 275 int SYSTEM EXPORT WriteLogError(char *tekst, ...) 276 276 { 277 //USHORT sel = RestoreOS2FS();277 USHORT sel = RestoreOS2FS(); 278 278 va_list argptr; 279 279 … … 285 285 printf("\n"); 286 286 287 //SetFS(sel);287 SetFS(sel); 288 288 return 1; 289 289 } -
trunk/src/kernel32/profile.cpp
r415 r436 1 /* $Id: profile.cpp,v 1. 7 1999-08-04 21:22:24phaller Exp $ */1 /* $Id: profile.cpp,v 1.8 1999-08-06 12:14:12 phaller Exp $ */ 2 2 3 3 /* … … 18 18 #include <stdio.h> 19 19 #include <unicode.h> 20 //#include "heap.h" 20 #include "heap.h" 21 #include "heapstring.h" 21 22 22 23 #include <sys/stat.h> … … 26 27 #include "winuser.h" 27 28 #include "winnls.h" 28 //#include "heap.h"29 //#include "debugtools.h"30 //#include "options.h"31 29 32 30 … … 39 37 #endif 40 38 41 #define HeapFree(a,b,c) free(c) 42 #define HEAP_xalloc(a,b,c) malloc(c) 43 #define HEAP_strdupA(a,b,c) strdup(c) 39 #define SystemHeap GetProcessHeap() 44 40 #define strcasecmp strcmp 45 41 #define DOSFS_GetFullName(a,b,c) strcpy(c,a) 46 #define HEAP_strdupAtoW(a,b,c) AsciiToUnicodeString((char *)c)47 #define HEAP_strdupWtoA(a,b,c) UnicodeToAsciiString((LPWSTR)c)48 #define lstrcpynAtoW(a,b,c) AsciiToUnicodeN((char*)a,(LPWSTR)b,(int)c)49 #define lstrcpynWtoA(a,b,c) UnicodeToAsciiN((LPWSTR)a,(char*)b,(int)c)50 42 //#define lstrcpynA(a,b,c) strncpy((char*)a,(char*)b,(int)c) 51 43 #define CharLowerA(a) (a) … … 1335 1327 INT ret = GetPrivateProfileStructA( sectionA, keyA, bufferA, 1336 1328 len, filenameA ); 1337 lstrcpynAtoW( buffer, bufferA, len );1329 lstrcpynAtoW( (LPWSTR)buffer, bufferA, len ); 1338 1330 HeapFree( GetProcessHeap(), 0, bufferA); 1339 1331 HeapFree( GetProcessHeap(), 0, sectionA );
Note:
See TracChangeset
for help on using the changeset viewer.