Changeset 617 for trunk/src/kernel32/windll.cpp
- Timestamp:
- Aug 22, 1999, 1:11:11 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/windll.cpp
r550 r617 1 /* $Id: windll.cpp,v 1.1 0 1999-08-18 17:18:00sandervl Exp $ */1 /* $Id: windll.cpp,v 1.11 1999-08-22 11:11:11 sandervl Exp $ */ 2 2 3 3 /* … … 28 28 #include <windll.h> 29 29 #include <wprocess.h> 30 #include "exceptions.h" 31 #include "exceptutil.h" 30 32 #include "cio.h" 31 33 … … 268 270 BOOL Win32Dll::attachProcess() 269 271 { 272 WINEXCEPTION_FRAME exceptFrame; 273 USHORT sel; 270 274 BOOL rc; 271 USHORT sel;272 275 273 276 //Allocate TLS index for this module … … 282 285 dprintf(("attachProcess to dll %s", szModule)); 283 286 287 //Note: The Win32 exception structure references by FS:[0] is the same 288 // in OS/2 289 OS2SetExceptionHandler((void *)&exceptFrame); 290 284 291 sel = SetWin32TIB(); 285 292 rc = dllEntryPoint(hinstance, DLL_PROCESS_ATTACH, 0); 286 293 SetFS(sel); 294 295 OS2UnsetExceptionHandler((void *)&exceptFrame); 296 287 297 return rc; 288 298 } … … 291 301 BOOL Win32Dll::detachProcess() 292 302 { 293 BOOL rc;303 WINEXCEPTION_FRAME exceptFrame; 294 304 USHORT sel; 305 BOOL rc; 295 306 296 307 if(fSystemDll || fSkipEntryCalls) { … … 300 311 301 312 dprintf(("detachProcess from dll %s", szModule)); 313 314 //Note: The Win32 exception structure references by FS:[0] is the same 315 // in OS/2 316 OS2SetExceptionHandler((void *)&exceptFrame); 302 317 303 318 fUnloaded = TRUE; … … 307 322 tlsDetachThread(); //destroy TLS (main thread) 308 323 tlsDelete(); 324 325 OS2UnsetExceptionHandler((void *)&exceptFrame); 326 309 327 return rc; 310 328 } … … 313 331 BOOL Win32Dll::attachThread() 314 332 { 333 WINEXCEPTION_FRAME exceptFrame; 334 BOOL rc; 335 315 336 if(fSystemDll || fSkipEntryCalls) 316 337 return(TRUE); 317 338 318 339 dprintf(("attachThread to dll %s", szModule)); 319 return dllEntryPoint(hinstance, DLL_THREAD_ATTACH, 0); 340 //Note: The Win32 exception structure references by FS:[0] is the same 341 // in OS/2 342 OS2SetExceptionHandler((void *)&exceptFrame); 343 344 rc = dllEntryPoint(hinstance, DLL_THREAD_ATTACH, 0); 345 346 OS2UnsetExceptionHandler((void *)&exceptFrame); 347 return rc; 320 348 } 321 349 //****************************************************************************** … … 323 351 BOOL Win32Dll::detachThread() 324 352 { 353 WINEXCEPTION_FRAME exceptFrame; 354 BOOL rc; 355 325 356 if(fSystemDll || fSkipEntryCalls) 326 357 return(TRUE); 327 358 328 359 dprintf(("attachThread from dll %s", szModule)); 329 return dllEntryPoint(hinstance, DLL_THREAD_DETACH, 0); 360 361 //Note: The Win32 exception structure references by FS:[0] is the same 362 // in OS/2 363 OS2SetExceptionHandler((void *)&exceptFrame); 364 365 rc = dllEntryPoint(hinstance, DLL_THREAD_DETACH, 0); 366 367 OS2UnsetExceptionHandler((void *)&exceptFrame); 368 return rc; 330 369 } 331 370 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.