Changeset 6414 for trunk/src


Ignore:
Timestamp:
Jul 30, 2001, 2:30:30 PM (24 years ago)
Author:
sandervl
Message:

custom build fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/custombuild/initterm.cpp

    r6413 r6414  
    7171   APIRET rc;
    7272   ULONG  version[2];
     73   static BOOL fInit = FALSE, fExit = FALSE;
    7374
    7475   /*-------------------------------------------------------------------------*/
     
    8081   switch (ulFlag) {
    8182      case 0 :
     83      {
    8284         /*******************************************************************/
    8385         /* The C run-time environment initialization function must be      */
     
    105107                return 0UL;
    106108
    107          CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
     109         char szErrName[CCHMAXPATH];
     110         rc = DosLoadModule(szErrName, sizeof(szErrName), "XXODIN32.DLL", &hModule);
     111         if(rc != 0) {
     112             return 0;
     113         }
    108114
    109115         if(RegCreateKeyA(HKEY_LOCAL_MACHINE,"Software\\XXOdin32\\REGROOT_HKEY_ClassesRoot",&hKeyClassesRoot)!=ERROR_SUCCESS_W) {
     
    175181         SetCustomBuildName(NULL);
    176182         break;
     183      }
     184
    177185      case 1 :
     186      {
    178187         inittermComdlg32(hModule, ulFlag);
    179188         inittermShell32(hModule, ulFlag);
     
    186195         inittermKernel32(hModule, ulFlag);
    187196         break;
     197      }
    188198
    189199      default  :
     
    215225    HMODULE hModule;
    216226
    217     DosQueryModuleHandle("OPWGSS50", &hModule);
     227    DosQueryModuleHandle("WGSS50", &hModule);
    218228    O32__DLL_InitTerm(hModule, 0);
    219     DosQueryModuleHandle("OPODIN32", &hModule);
     229    DosQueryModuleHandle("XXODIN32", &hModule);
    220230    return inittermKernel32(hModule, 0);
    221231}
Note: See TracChangeset for help on using the changeset viewer.