Ignore:
Timestamp:
Aug 6, 1999, 2:15:25 PM (26 years ago)
Author:
phaller
Message:

Fix: Heap changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/profile.cpp

    r415 r436  
    1 /* $Id: profile.cpp,v 1.7 1999-08-04 21:22:24 phaller Exp $ */
     1/* $Id: profile.cpp,v 1.8 1999-08-06 12:14:12 phaller Exp $ */
    22
    33/*
     
    1818#include <stdio.h>
    1919#include <unicode.h>
    20 //#include "heap.h"
     20#include "heap.h"
     21#include "heapstring.h"
    2122
    2223#include <sys/stat.h>
     
    2627#include "winuser.h"
    2728#include "winnls.h"
    28 //#include "heap.h"
    29 //#include "debugtools.h"
    30 //#include "options.h"
    3129
    3230
     
    3937#endif
    4038
    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()
    4440#define strcasecmp               strcmp
    4541#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)
    5042//#define lstrcpynA(a,b,c)         strncpy((char*)a,(char*)b,(int)c)
    5143#define CharLowerA(a)            (a)
     
    13351327    INT ret = GetPrivateProfileStructA( sectionA, keyA, bufferA,
    13361328               len, filenameA );
    1337     lstrcpynAtoW( buffer, bufferA, len );
     1329    lstrcpynAtoW( (LPWSTR)buffer, bufferA, len );
    13381330    HeapFree( GetProcessHeap(), 0, bufferA);
    13391331    HeapFree( GetProcessHeap(), 0, sectionA );
Note: See TracChangeset for help on using the changeset viewer.