- Timestamp:
- Jul 15, 2002, 4:40:16 PM (23 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/HandleManager.cpp
r8401 r8880 1 /* $Id: HandleManager.cpp,v 1.8 8 2002-05-10 14:55:09sandervl Exp $ */1 /* $Id: HandleManager.cpp,v 1.89 2002-07-15 14:40:15 sandervl Exp $ */ 2 2 3 3 /* … … 121 121 static PHMDEVICE TabWin32Devices = NULL; 122 122 123 static HMHANDLE TabWin32Handles[MAX_OS2_HMHANDLES]; /* static handle table */124 VMutex handleMutex;123 static HMHANDLE *TabWin32Handles = NULL; /* static handle table */ 124 VMutex handleMutex; 125 125 126 126 struct _HMGlobals … … 420 420 { 421 421 handleMutex.enter(); 422 423 TabWin32Handles = (HMHANDLE *)malloc(MAX_OS2_HMHANDLES*sizeof(HMHANDLE)); 424 if(TabWin32Handles == NULL) { 425 DebugInt3(); 426 return ERROR_NOT_ENOUGH_MEMORY; 427 } 428 memset(TabWin32Handles, 0, MAX_OS2_HMHANDLES*sizeof(HMHANDLE)); 429 422 430 // fill handle table 423 431 for(ulIndex = 0; ulIndex < MAX_OS2_HMHANDLES; ulIndex++) { -
trunk/src/kernel32/initkernel32.cpp
r8863 r8880 1 /* $Id: initkernel32.cpp,v 1.2 0 2002-07-13 15:57:57sandervl Exp $1 /* $Id: initkernel32.cpp,v 1.21 2002-07-15 14:40:16 sandervl Exp $ 2 2 * 3 3 * KERNEL32 DLL entry point … … 140 140 return 0UL; 141 141 142 //SvL: Do it here instead of during the exe object creation 143 //(std handles can be used in win32 dll initialization routines 144 HMInitialize(); /* store standard handles within HandleManager */ 145 142 146 InitializeMemMaps(); 143 147 … … 173 177 OSLibDosSetInitialMaxFileHandles(ODIN_DEFAULT_MAX_FILEHANDLES); 174 178 175 //SvL: Do it here instead of during the exe object creation176 //(std handles can be used in win32 dll initialization routines177 HMInitialize(); /* store standard handles within HandleManager */178 179 InitDirectories(); //Must be done before InitializeTIB (which loads NTDLL -> USER32) 179 180 InitializeMainThread(); //Must be done after HMInitialize!
Note:
See TracChangeset
for help on using the changeset viewer.