Changeset 3704 for trunk/src/kernel32/windllbase.cpp
- Timestamp:
- Jun 14, 2000, 4:28:43 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note:
See TracChangeset
for help on using the changeset viewer.