- Timestamp:
- Jun 14, 2000, 4:28:43 AM (25 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/heapshared.cpp
r3074 r3704 1 /* $Id: heapshared.cpp,v 1. 5 2000-03-10 16:11:58 sandervlExp $ */1 /* $Id: heapshared.cpp,v 1.6 2000-06-14 02:27:33 phaller Exp $ */ 2 2 /* 3 3 * Shared heap functions for OS/2 … … 134 134 135 135 /* round the size up to a multiple of 4K */ 136 *size = (*size / 4096) * 4096 + 4096; 136 // *size = (*size / 4096) * 4096 + 4096; 137 // @@@PH speed improvement 138 *size = (*size + 4096) & 0xFFFFF000; 137 139 *size = max(*size, INCR_HEAPSIZE); 138 140 -
trunk/src/kernel32/windllbase.cpp
r3483 r3704 1 /* $Id: windllbase.cpp,v 1.1 3 2000-05-02 20:53:14 sandervlExp $ */1 /* $Id: windllbase.cpp,v 1.14 2000-06-14 02:27:33 phaller Exp $ */ 2 2 3 3 /* … … 421 421 422 422 dprintf(("attachProcess to dll %s", szModule)); 423 424 rc = dllEntryPoint(hinstance, DLL_PROCESS_ATTACH, 0); 423 424 // @@@PH 2000/06/13 lpvReserved, Starcraft STORM.DLL 425 // if DLL_PROCESS_ATTACH, lpvReserved is NULL for dynamic loads 426 // and non-NULL for static loads. 427 // same goes for process termination 428 LPVOID lpvReserved; 429 430 if (isDynamicLib()) 431 lpvReserved = NULL; 432 else 433 lpvReserved = (LPVOID)0xdeadface; // some arbitrary value 434 435 rc = dllEntryPoint(hinstance, DLL_PROCESS_ATTACH, lpvReserved); 425 436 426 437 dprintf(("attachProcess to dll %s DONE", szModule)); … … 461 472 fUnloaded = TRUE; 462 473 sel = SetWin32TIB(); 463 rc = dllEntryPoint(hinstance, DLL_PROCESS_DETACH, 0); 474 475 // @@@PH 2000/06/13 lpvReserved, Starcraft STORM.DLL 476 // if DLL_PROCESS_ATTACH, lpvReserved is NULL for dynamic loads 477 // and non-NULL for static loads. 478 // same goes for process termination 479 LPVOID lpvReserved; 480 481 if (isDynamicLib()) 482 lpvReserved = NULL; 483 else 484 lpvReserved = (LPVOID)0xdeadface; // some arbitrary value 485 486 rc = dllEntryPoint(hinstance, DLL_PROCESS_DETACH, lpvReserved); 487 464 488 SetFS(sel); 465 489 tlsDetachThread(); //destroy TLS (main thread) … … 481 505 482 506 dprintf(("attachThread to dll %s", szModule)); 483 507 484 508 rc = dllEntryPoint(hinstance, DLL_THREAD_ATTACH, 0); 485 509 … … 499 523 500 524 dprintf(("detachThread from dll %s", szModule)); 501 525 502 526 rc = dllEntryPoint(hinstance, DLL_THREAD_DETACH, 0); 503 527 return rc; -
trunk/src/kernel32/windllbase.h
r3483 r3704 1 /* $Id: windllbase.h,v 1. 2 2000-05-02 20:53:14 sandervlExp $ */1 /* $Id: windllbase.h,v 1.3 2000-06-14 02:27:33 phaller Exp $ */ 2 2 3 3 /* … … 80 80 void decDynamicLib(); 81 81 BOOL isDynamicLib() { return nrDynamicLibRef != 0; }; 82 82 83 83 void setUnloadOrder(Win32ImageBase *parent); 84 84 … … 141 141 BOOL fLoadLibrary; 142 142 BOOL fDisableUnload; 143 143 144 144 private: 145 145 static Queue loadLibDlls;
Note:
See TracChangeset
for help on using the changeset viewer.