File tree Expand file tree Collapse file tree 2 files changed +24
-18
lines changed Expand file tree Collapse file tree 2 files changed +24
-18
lines changed Original file line number Diff line number Diff line change @@ -784,18 +784,21 @@ int main(int argc, char *argv[])
784
784
NULL );
785
785
if ( childThread == NULL )
786
786
{
787
- die ( " replacing functions in child thread" );
787
+ DEBUG ( " couldn't create child thread to replace functions \n " );
788
788
}
789
- DEBUG (" created child thread to replace functions\n " );
790
-
791
- // Wait for child thread to complete:
792
- if ( WaitForSingleObject (childThread, INFINITE) != WAIT_OBJECT_0 )
789
+ else
793
790
{
794
- die (" waiting for initialization thread" );
791
+ DEBUG (" created child thread to replace functions\n " );
792
+
793
+ // Wait for child thread to complete:
794
+ if ( WaitForSingleObject (childThread, INFINITE) != WAIT_OBJECT_0 )
795
+ {
796
+ die (" waiting for initialization thread" );
797
+ }
798
+ DEBUG (" child thread to replace functions completed\n " );
799
+ CloseHandle (childThread);
800
+ DEBUG (" cleaned up child thread to replace functions\n " );
795
801
}
796
- DEBUG (" child thread to replace functions completed\n " );
797
- CloseHandle (childThread);
798
- DEBUG (" cleaned up child thread to replace functions\n " );
799
802
}
800
803
}
801
804
Original file line number Diff line number Diff line change @@ -432,18 +432,21 @@ int main(int argc, char *argv[])
432
432
NULL );
433
433
if ( childThread == NULL )
434
434
{
435
- die ( " replacing functions in child thread" );
435
+ DEBUG ( " couldn't create child thread to replace functions \n " );
436
436
}
437
- DEBUG (" created child thread to replace functions\n " );
438
-
439
- // Wait for child thread to complete:
440
- if ( WaitForSingleObject (childThread, INFINITE) != WAIT_OBJECT_0 )
437
+ else
441
438
{
442
- die (" waiting for initialization thread" );
439
+ DEBUG (" created child thread to replace functions\n " );
440
+
441
+ // Wait for child thread to complete:
442
+ if ( WaitForSingleObject (childThread, INFINITE) != WAIT_OBJECT_0 )
443
+ {
444
+ die (" waiting for initialization thread" );
445
+ }
446
+ DEBUG (" child thread to replace functions completed\n " );
447
+ CloseHandle (childThread);
448
+ DEBUG (" cleaned up child thread to replace functions\n " );
443
449
}
444
- DEBUG (" child thread to replace functions completed\n " );
445
- CloseHandle (childThread);
446
- DEBUG (" cleaned up child thread to replace functions\n " );
447
450
}
448
451
449
452
// Resume child process:
You can’t perform that action at this time.
0 commit comments