- Timestamp:
- Feb 13, 2003, 6:17:06 PM (23 years ago)
- 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:59sandervl Exp $ */1 /* $Id: ntdll.c,v 1.6 2003-02-13 17:17:05 sandervl Exp $ */ 2 2 3 3 /* … … 52 52 #define NTSTATUS DWORD 53 53 54 //SvL: per process heap for NTDLL55 HANDLE NTDLL_hHeap = 0;56 57 54 PROCESSTHREAD_SECURITYINFO ProcSecInfo = {0}; 58 55 … … 94 91 SID_IDENTIFIER_AUTHORITY sidIdAuth = {0}; 95 92 96 NTDLL_hHeap = HeapCreate(0, 0x10000, 0);97 98 93 ProcSecInfo.dwType = SECTYPE_PROCESS | SECTYPE_INITIALIZED; 99 94 RtlAllocateAndInitializeSid(&sidIdAuth, 1, 0, 0, 0, 0, 0, 0, 0, 0, &ProcSecInfo.SidUser.User.Sid); … … 115 110 } 116 111 case DLL_PROCESS_DETACH: 117 HeapDestroy(NTDLL_hHeap);118 NTDLL_hHeap = 0;119 112 break; 120 113 case DLL_THREAD_ATTACH: -
trunk/src/NTDLL/ntdll.h
r9684 r9803 1 /* $Id: ntdll.h,v 1.1 4 2003-01-16 15:22:38sandervl Exp $ */1 /* $Id: ntdll.h,v 1.15 2003-02-13 17:17:06 sandervl Exp $ */ 2 2 3 3 /* … … 46 46 47 47 //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) 51 50 52 51 typedef struct _IO_STATUS_BLOCK
Note:
See TracChangeset
for help on using the changeset viewer.