Changeset 130 for trunk/src/kernel32/windll.cpp
- Timestamp:
- Jun 20, 1999, 2:46:34 PM (26 years ago)
- 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:43sandervl Exp $ */1 /* $Id: windll.cpp,v 1.5 1999-06-20 12:46:09 sandervl Exp $ */ 2 2 3 3 /* … … 36 36 void _System SetLastError(ULONG ulError); 37 37 38 39 38 //****************************************************************************** 40 39 //****************************************************************************** … … 50 49 UpCase(szModule); 51 50 char *dot = strstr(szModule, "."); 51 while(dot) { 52 char *newdot = strstr(dot+1, "."); 53 if(newdot == NULL) break; 54 dot = newdot; 55 } 52 56 if(dot) 53 57 *dot = 0; 58 dprintf(("Win32Dll::Win32Dll %s %s", szFileName, szModule)); 54 59 } 55 60 //****************************************************************************** … … 69 74 UpCase(szModule); 70 75 char *dot = strstr(szModule, "."); 76 while(dot) { 77 char *newdot = strstr(dot+1, "."); 78 if(newdot == NULL) break; 79 dot = newdot; 80 } 71 81 if(dot) 72 82 *dot = 0; 73 83 84 dprintf(("Win32Dll::Win32Dll %s", szModule)); 74 85 } 75 86 //****************************************************************************** … … 85 96 UpCase(szModule); 86 97 char *dot = strstr(szModule, "."); 98 while(dot) { 99 char *newdot = strstr(dot+1, "."); 100 if(newdot == NULL) break; 101 dot = newdot; 102 } 87 103 if(dot) 88 104 *dot = 0; … … 95 111 { 96 112 Win32Dll *dll = head; 113 114 dprintf(("Win32Dll::~Win32Dll %s", szModule)); 97 115 98 116 //first remove it from the linked list so converted win32 dlls won't … … 111 129 dll->next = next; 112 130 } 113 if(errorState == NO_ERROR && !fUnloaded) { 114 if(fNativePEImage) { 131 if(errorState == NO_ERROR && !fUnloaded) 132 { 133 if(!fSystemDll) { 115 134 detachProcess(); 116 } 117 else { 118 if(!fSystemDll) //let OS/2 unload them, unless ordered by FreeLibrary (see ::Release) 119 DosFreeModule((HMODULE)hinstance); 120 } 135 } 121 136 } 122 137 } … … 185 200 "WNETAP32", "MPR", "OLE32", "ADVAPI32", "COMMDLG", 186 201 "WINSPOOL", "SHELL32", "TAPI32", "CAPI32", "VERSION", 187 "WSOCK32" };202 "WSOCK32", "COMCTL32"}; 188 203 //****************************************************************************** 189 204 BOOL Win32Dll::isSystemDll(char *szFileName) … … 249 264 } 250 265 251 //Add to look kup table, so we don't have to call DosQueryProcAddr266 //Add to lookup table, so we don't have to call DosQueryProcAddr 252 267 //multiple times for the same api (when imported by other dlls) 253 268 AddNameExport(apiaddr, name, 0);
Note:
See TracChangeset
for help on using the changeset viewer.