Ignore:
Timestamp:
Jun 23, 2011, 2:02:58 PM (14 years ago)
Author:
dmik
Message:

general: Exit gracefully instead of crashing if KERNEL32.DLL initialization fails. Note that "gracefully" means "silently" in this case since it seems that the only way how the OS/2 loader reports a failure to initialize a required DLL for a started EXE is by returning a non-zero exit code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/initgdi32.cpp

    r21304 r21649  
    9999         ParseLogStatusGDI32();
    100100
    101          InitializeKernel32();
     101         if (InitializeKernel32() == 0)
     102             return 0;
     103
    102104         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    103105         if(InitRegionSpace() == FALSE) {
Note: See TracChangeset for help on using the changeset viewer.