Changeset 6412 for trunk/src/kernel32/winimagebase.cpp
- Timestamp:
- Jul 30, 2001, 2:02:45 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimagebase.cpp
r5959 r6412 1 /* $Id: winimagebase.cpp,v 1.3 2 2001-06-10 22:32:17sandervl Exp $ */1 /* $Id: winimagebase.cpp,v 1.33 2001-07-30 12:01:25 sandervl Exp $ */ 2 2 3 3 /* … … 30 30 #include <windllbase.h> 31 31 #include <winexebase.h> 32 #include <windlllx.h> 32 33 #include <pefile.h> 33 34 #include <unicode.h> … … 50 51 ulRVAResourceSection(0) 51 52 { 53 char *name; 54 52 55 magic = MAGIC_WINIMAGE; 53 56 … … 55 58 this->hinstance = hInstance; 56 59 57 char *name = OSLibGetDllName(hinstance); 60 if(lpszCustomDllName) { 61 name = lpszCustomDllName; 62 } 63 else name = OSLibGetDllName(hinstance); 64 58 65 strcpy(szFileName, name); 59 66 strupr(szFileName); 60 67 61 //rename dll (os/2 -> win32) if necessary (i.e. OLE32OS2 -> OLE32) 62 Win32DllBase::renameDll(szFileName, FALSE); 63 64 name = strrchr(szFileName, '\\')+1; 65 strcpy(szModule, name); 68 if(lpszCustomDllName) { 69 strcpy(szModule, name); 70 } 71 else { 72 //rename dll (os/2 -> win32) if necessary (i.e. OLE32OS2 -> OLE32) 73 Win32DllBase::renameDll(szFileName, FALSE); 74 name = strrchr(szFileName, '\\')+1; 75 strcpy(szModule, name); 76 } 66 77 } 67 78 else {
Note:
See TracChangeset
for help on using the changeset viewer.