Ignore:
Timestamp:
Jun 20, 1999, 2:46:34 PM (26 years ago)
Author:
sandervl
Message:

Activated Win32 TIB code and fixes some other things (see ChangeLog)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/windll.cpp

    r120 r130  
    1 /* $Id: windll.cpp,v 1.4 1999-06-19 10:54:43 sandervl Exp $ */
     1/* $Id: windll.cpp,v 1.5 1999-06-20 12:46:09 sandervl Exp $ */
    22
    33/*
     
    3636void _System SetLastError(ULONG ulError);
    3737
    38 
    3938//******************************************************************************
    4039//******************************************************************************
     
    5049  UpCase(szModule);
    5150  char *dot = strstr(szModule, ".");
     51  while(dot) {
     52        char *newdot = strstr(dot+1, ".");
     53        if(newdot == NULL)      break;
     54        dot = newdot;
     55  }
    5256  if(dot)
    5357        *dot = 0;
     58  dprintf(("Win32Dll::Win32Dll %s %s", szFileName, szModule));
    5459}
    5560//******************************************************************************
     
    6974  UpCase(szModule);
    7075  char *dot = strstr(szModule, ".");
     76  while(dot) {
     77        char *newdot = strstr(dot+1, ".");
     78        if(newdot == NULL)      break;
     79        dot = newdot;
     80  }
    7181  if(dot)
    7282        *dot = 0;
    7383
     84  dprintf(("Win32Dll::Win32Dll %s", szModule));
    7485}
    7586//******************************************************************************
     
    8596  UpCase(szModule);
    8697  char *dot = strstr(szModule, ".");
     98  while(dot) {
     99        char *newdot = strstr(dot+1, ".");
     100        if(newdot == NULL)      break;
     101        dot = newdot;
     102  }
    87103  if(dot)
    88104        *dot = 0;
     
    95111{
    96112 Win32Dll *dll = head;
     113
     114  dprintf(("Win32Dll::~Win32Dll %s", szModule));
    97115
    98116  //first remove it from the linked list so converted win32 dlls won't
     
    111129        dll->next = next;
    112130  }
    113   if(errorState == NO_ERROR && !fUnloaded) {
    114         if(fNativePEImage) {
     131  if(errorState == NO_ERROR && !fUnloaded)
     132  {
     133        if(!fSystemDll) {
    115134                detachProcess();
    116         }
    117         else {
    118                 if(!fSystemDll) //let OS/2 unload them, unless ordered by FreeLibrary (see ::Release)
    119                         DosFreeModule((HMODULE)hinstance);
    120         }
     135        }       
    121136  }
    122137}
     
    185200                      "WNETAP32", "MPR", "OLE32", "ADVAPI32", "COMMDLG",
    186201                      "WINSPOOL", "SHELL32", "TAPI32", "CAPI32", "VERSION",
    187                       "WSOCK32"};
     202                      "WSOCK32", "COMCTL32"};
    188203//******************************************************************************
    189204BOOL Win32Dll::isSystemDll(char *szFileName)
     
    249264    }
    250265
    251     //Add to lookkup table, so we don't have to call DosQueryProcAddr
     266    //Add to lookup table, so we don't have to call DosQueryProcAddr
    252267    //multiple times for the same api (when imported by other dlls)
    253268    AddNameExport(apiaddr, name, 0);
Note: See TracChangeset for help on using the changeset viewer.