Changeset 21626 for trunk/src/kernel32/initkernel32.cpp
- Timestamp:
- Apr 15, 2011, 9:37:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/initkernel32.cpp
r21583 r21626 73 73 } 74 74 75 // borrowed from ntddk.h 76 extern "C" 77 void WIN32API RtlUnwind( 78 LPVOID, 79 LPVOID, 80 LPVOID,DWORD); 81 75 82 extern PFN pfnImSetMsgQueueProperty; 76 83 … … 275 282 dprintf(("kernel32 exit %d\n", ulReason)); 276 283 284 TEB *teb = GetThreadTEB(); 285 286 if (teb) 287 { 288 // make sure the Win32 exception stack (if there is still any) is unwound 289 // before we destroy internal structures including the Win32 TEB 290 RtlUnwind(NULL, 0, 0, 0); 291 } 292 277 293 if( IsDBCSEnv() && imHandle ) 278 294 DosFreeModule( imHandle ); … … 288 304 OSLibLVMExit(); 289 305 290 TEB *teb = GetThreadTEB();291 306 if(teb) DestroyTEB(teb); 292 307 DestroySharedHeap();
Note:
See TracChangeset
for help on using the changeset viewer.