Changeset 21649 for trunk/src/NTDLL


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/NTDLL/initntdll.c

    r21584 r21649  
    5454
    5555         //Initialize kernel32 first (circular dependency between kernel32 & ntdll)
    56          InitializeKernel32();
     56         if (InitializeKernel32() == 0)
     57             return 0;
    5758
    5859         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
Note: See TracChangeset for help on using the changeset viewer.