Changeset 436 for trunk/src/kernel32/profile.cpp
- Timestamp:
- Aug 6, 1999, 2:15:25 PM (26 years ago)
- File:
-
- 1 edited
-
trunk/src/kernel32/profile.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
