Changeset 333

Show
Ignore:
Timestamp:
Tue Nov 20 07:34:11 2007
Author:
giovannibajo
Message:

Check doIt() return value.

From: Anton Gyllenberg <anton@iki.fi>

finalizePython() may crash if doIt() fails. Add some error checking
to fail more gracefully. This will prevent the "Do you want to send
information to Microsoft" dialog e.g., in case python.dll could not
be loaded.

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/source/windows/winmain.c

    r332 r333  
    143 143                 // we're the "child" process  
    144 144                 rc = doIt(argc, argv);  
      145                 if (rc) {  
      146                         return rc;  
      147                 }  
    145 148                 finalizePython();  
    146 149         }  
     
    158 161                         // no "child" process necessary  
    159 162                         rc = doIt(argc, argv);  
      163                         if (rc) {  
      164                                 return rc;  
      165                         }  
    160 166                         finalizePython();  
    161 167                 }