Changeset 9803 for trunk/src


Ignore:
Timestamp:
Feb 13, 2003, 6:17:06 PM (23 years ago)
Author:
sandervl
Message:

cleaned up

Location:
trunk/src/NTDLL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/NTDLL/ntdll.c

    r9731 r9803  
    1 /* $Id: ntdll.c,v 1.5 2003-01-23 20:21:59 sandervl Exp $ */
     1/* $Id: ntdll.c,v 1.6 2003-02-13 17:17:05 sandervl Exp $ */
    22
    33/*
     
    5252#define NTSTATUS DWORD
    5353
    54 //SvL: per process heap for NTDLL
    55 HANDLE NTDLL_hHeap = 0;
    56 
    5754PROCESSTHREAD_SECURITYINFO ProcSecInfo = {0};
    5855
     
    9491        SID_IDENTIFIER_AUTHORITY sidIdAuth = {0};
    9592
    96         NTDLL_hHeap = HeapCreate(0, 0x10000, 0);
    97 
    9893        ProcSecInfo.dwType = SECTYPE_PROCESS | SECTYPE_INITIALIZED;
    9994        RtlAllocateAndInitializeSid(&sidIdAuth, 1, 0, 0, 0, 0, 0, 0, 0, 0, &ProcSecInfo.SidUser.User.Sid);
     
    115110    }
    116111    case DLL_PROCESS_DETACH:
    117         HeapDestroy(NTDLL_hHeap);
    118         NTDLL_hHeap = 0;
    119112        break;
    120113    case DLL_THREAD_ATTACH:
  • trunk/src/NTDLL/ntdll.h

    r9684 r9803  
    1 /* $Id: ntdll.h,v 1.14 2003-01-16 15:22:38 sandervl Exp $ */
     1/* $Id: ntdll.h,v 1.15 2003-02-13 17:17:06 sandervl Exp $ */
    22
    33/*
     
    4646
    4747//SvL: Internal heap allocation definitions for NTDLL
    48 extern HANDLE NTDLL_hHeap;
    49 #define Heap_Alloc(a)   HeapAlloc(NTDLL_hHeap, HEAP_ZERO_MEMORY, a)
    50 #define Heap_Free(a)    HeapFree(NTDLL_hHeap, 0, (PVOID)a)
     48#define Heap_Alloc(a)   HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, a)
     49#define Heap_Free(a)    HeapFree(GetProcessHeap(), 0, (PVOID)a)
    5150
    5251typedef struct _IO_STATUS_BLOCK
Note: See TracChangeset for help on using the changeset viewer.