Changeset 46 for trunk/src/kernel32/resource.cpp
- Timestamp:
- Jun 7, 1999, 10:58:22 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/resource.cpp
r37 r46 1 /* $Id: resource.cpp,v 1.4 1999-06-06 12:25:49 cbratschi Exp $ */2 3 1 /* 4 2 * … … 14 12 */ 15 13 #include <os2win.h> 16 #include "misc.h"17 18 14 #include "unicode.h" 19 15 #include "winres.h" 20 16 #include "winimage.h" 21 17 #include "winexe.h" 22 23 18 24 19 //****************************************************************************** … … 31 26 32 27 dprintf(("FindResourceA %X", hModule)); 33 // EB: ->>> added real exe module handle 34 if(hModule == 0 || hModule == -1 || (WinExe != NULL && hModule == WinExe->getOS2InstanceHandle())) 35 module = (Win32Image *)WinExe; 36 else 37 module = (Win32Image *)Win32Dll::findModule(hModule); 28 if(hModule == 0 || hModule == -1 || (WinExe != NULL && hModule == 29 WinExe->getOS2InstanceHandle())) 30 { 31 module = (Win32Image *)WinExe; 32 } 33 else module = (Win32Image *)Win32Dll::findModule(hModule); 38 34 39 35 if(module == NULL) 40 return(NULL);36 return(NULL); 41 37 42 38 return module->findResourceA(lpszName, (LPSTR)lpszType); … … 45 41 //****************************************************************************** 46 42 HRSRC WIN32API FindResourceW(HINSTANCE hModule, LPCWSTR lpszName, 47 43 LPCWSTR lpszType) 48 44 { 49 45 Win32Image *module; 50 46 51 47 dprintf(("FindResourceW %X", hModule)); 52 if(hModule == 0 || hModule == -1) 48 if(hModule == 0 || hModule == -1 || (WinExe != NULL && hModule == 49 WinExe->getOS2InstanceHandle())) 50 { 53 51 module = (Win32Image *)WinExe; 52 } 54 53 else module = (Win32Image *)Win32Dll::findModule(hModule); 55 54 56 55 if(module == NULL) 57 56 return(NULL); 58 57 59 58 return module->findResourceW((LPWSTR)lpszName, (LPWSTR)lpszType);
Note:
See TracChangeset
for help on using the changeset viewer.