Changeset 8111 for trunk/src/kernel32/resource.cpp
- Timestamp:
- Mar 22, 2002, 1:51:35 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/resource.cpp
r8012 r8111 1 /* $Id: resource.cpp,v 1.1 8 2002-02-25 12:02:17sandervl Exp $ */1 /* $Id: resource.cpp,v 1.19 2002-03-22 12:51:35 sandervl Exp $ */ 2 2 3 3 /* … … 16 16 #include <winexebase.h> 17 17 #include <windllbase.h> 18 #include <custombuild.h>19 18 20 19 #define DBG_LOCALLOG DBG_resource … … 22 21 23 22 24 static PFNFINDRESOURCEEXA pfnCustomFindResourceA = NULL;25 static PFNFINDRESOURCEEXW pfnCustomFindResourceW = NULL;26 27 //******************************************************************************28 //Called by custom Odin builds to hook FindReource(Ex)A/W calls29 //******************************************************************************30 BOOL WIN32API SetCustomFindResource(PFNFINDRESOURCEEXA pfnFindResourceA, PFNFINDRESOURCEEXW pfnFindResourceW)31 {32 pfnCustomFindResourceA = pfnFindResourceA;33 pfnCustomFindResourceW = pfnFindResourceW;34 return TRUE;35 }36 23 //****************************************************************************** 37 24 //lpszName = integer id (high word 0), else string (name or "#237") … … 43 30 WORD wLanguage = MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL); 44 31 45 if(pfnCustomFindResourceA) {46 pfnCustomFindResourceA(&hModule, (LPSTR *)&lpszName, (LPSTR *)&lpszType, &wLanguage);47 }48 32 module = Win32ImageBase::findModule(hModule); 49 33 if(module == NULL) { … … 61 45 WORD wLanguage = MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL); 62 46 63 if(pfnCustomFindResourceW) {64 pfnCustomFindResourceW(&hModule, (LPWSTR *)&lpszName, (LPWSTR *)&lpszType, &wLanguage);65 }66 47 module = Win32ImageBase::findModule(hModule); 67 48 if(module == NULL) { … … 96 77 Win32ImageBase *module; 97 78 98 if(pfnCustomFindResourceA) {99 pfnCustomFindResourceA(&hModule, (LPSTR *)&lpName, (LPSTR *)&lpType, &wLanguage);100 }101 102 79 module = Win32ImageBase::findModule(hModule); 103 80 if(module == NULL) { … … 134 111 Win32ImageBase *module; 135 112 136 if(pfnCustomFindResourceW) {137 pfnCustomFindResourceW(&hModule, (LPWSTR *)&lpName, (LPWSTR *)&lpType, &wLanguage);138 }139 140 113 module = Win32ImageBase::findModule(hModule); 141 114 if(module == NULL) { … … 161 134 /* @@@PH */ 162 135 if(HIWORD(hRes) == NULL) { 163 164 136 dprintf(("ERROR: LoadResource %x: invalid hRes %x", hModule, hRes)); 137 return 0; 165 138 } 166 139
Note:
See TracChangeset
for help on using the changeset viewer.