Ignore:
Timestamp:
Mar 22, 2002, 1:51:35 PM (23 years ago)
Author:
sandervl
Message:

removed FindResource hooks

File:
1 edited

Legend:

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

    r8012 r8111  
    1 /* $Id: resource.cpp,v 1.18 2002-02-25 12:02:17 sandervl Exp $ */
     1/* $Id: resource.cpp,v 1.19 2002-03-22 12:51:35 sandervl Exp $ */
    22
    33/*
     
    1616#include <winexebase.h>
    1717#include <windllbase.h>
    18 #include <custombuild.h>
    1918
    2019#define DBG_LOCALLOG    DBG_resource
     
    2221
    2322
    24 static PFNFINDRESOURCEEXA pfnCustomFindResourceA = NULL;
    25 static PFNFINDRESOURCEEXW pfnCustomFindResourceW = NULL;
    26 
    27 //******************************************************************************
    28 //Called by custom Odin builds to hook FindReource(Ex)A/W calls
    29 //******************************************************************************
    30 BOOL WIN32API SetCustomFindResource(PFNFINDRESOURCEEXA pfnFindResourceA, PFNFINDRESOURCEEXW pfnFindResourceW)
    31 {
    32     pfnCustomFindResourceA = pfnFindResourceA;
    33     pfnCustomFindResourceW = pfnFindResourceW;
    34     return TRUE;
    35 }
    3623//******************************************************************************
    3724//lpszName = integer id (high word 0), else string (name or "#237")
     
    4330 WORD wLanguage = MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL);
    4431
    45     if(pfnCustomFindResourceA) {
    46         pfnCustomFindResourceA(&hModule, (LPSTR *)&lpszName, (LPSTR *)&lpszType, &wLanguage);
    47     }
    4832    module = Win32ImageBase::findModule(hModule);
    4933    if(module == NULL) {
     
    6145 WORD wLanguage = MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL);
    6246
    63     if(pfnCustomFindResourceW) {
    64         pfnCustomFindResourceW(&hModule, (LPWSTR *)&lpszName, (LPWSTR *)&lpszType, &wLanguage);
    65     }
    6647    module = Win32ImageBase::findModule(hModule);
    6748    if(module == NULL) {
     
    9677 Win32ImageBase *module;
    9778
    98     if(pfnCustomFindResourceA) {
    99         pfnCustomFindResourceA(&hModule, (LPSTR *)&lpName, (LPSTR *)&lpType, &wLanguage);
    100     }
    101 
    10279    module = Win32ImageBase::findModule(hModule);
    10380    if(module == NULL) {
     
    134111 Win32ImageBase *module;
    135112
    136     if(pfnCustomFindResourceW) {
    137         pfnCustomFindResourceW(&hModule, (LPWSTR *)&lpName, (LPWSTR *)&lpType, &wLanguage);
    138     }
    139 
    140113    module = Win32ImageBase::findModule(hModule);
    141114    if(module == NULL) {
     
    161134  /* @@@PH */
    162135  if(HIWORD(hRes) == NULL) {
    163         dprintf(("ERROR: LoadResource %x: invalid hRes %x", hModule, hRes));
    164         return 0;
     136      dprintf(("ERROR: LoadResource %x: invalid hRes %x", hModule, hRes));
     137      return 0;
    165138  }
    166139
Note: See TracChangeset for help on using the changeset viewer.