Changeset 436 for trunk/src


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

Fix: Heap changes

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:12 phaller Exp $ */
     1/* $Id: misc.cpp,v 1.6 1999-08-06 12:15:25 phaller Exp $ */
    22
    33/*
     
    246246int SYSTEM EXPORT WriteLog(char *tekst, ...)
    247247{
    248 //  USHORT  sel = RestoreOS2FS();
     248  USHORT  sel = RestoreOS2FS();
    249249  va_list argptr;
    250250
     
    269269  }
    270270
    271 //  SetFS(sel);
     271  SetFS(sel);
    272272  return 1;
    273273}
     
    275275int SYSTEM EXPORT WriteLogError(char *tekst, ...)
    276276{
    277 //  USHORT  sel = RestoreOS2FS();
     277  USHORT  sel = RestoreOS2FS();
    278278  va_list argptr;
    279279
     
    285285    printf("\n");
    286286
    287 //  SetFS(sel);
     287  SetFS(sel);
    288288  return 1;
    289289}
  • 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.