Ignore:
Timestamp:
Sep 28, 1999, 2:39:40 AM (26 years ago)
Author:
phaller
Message:

Add: debug info for missing API imports

File:
1 edited

Legend:

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

    r978 r1075  
    1 /* $Id: winimagepeldr.cpp,v 1.2 1999-09-18 17:47:10 sandervl Exp $ */
     1/* $Id: winimagepeldr.cpp,v 1.3 1999-09-28 00:37:39 phaller Exp $ */
    22
    33/*
     
    6060//******************************************************************************
    6161Win32PeLdrImage::Win32PeLdrImage(char *szFileName) :
    62     Win32ImageBase(-1), 
     62    Win32ImageBase(-1),
    6363    nrsections(0), imageSize(0),
    6464    imageVirtBase(-1), realBaseAddress(0), imageVirtEnd(0),
     
    714714  import  = (ULONG *)(impaddr - oh.ImageBase + realBaseAddress);
    715715  apiaddr = WinDll->getApi(ordinal);
    716   if(apiaddr == 0) {
     716  if(apiaddr == 0)
     717  {
     718    dprintf(("KERNEL32:Win32PeLdrImage - %s.%u not found\n",
     719             WinDll->getName(),
     720             ordinal));
     721
    717722        fout << "--->>> NOT FOUND!";
    718723        *import = (ULONG)MissingApi;
     
    729734  import = (ULONG *)(impaddr - oh.ImageBase + realBaseAddress);
    730735  apiaddr = WinDll->getApi(impname);
    731   if(apiaddr == 0) {
     736  if(apiaddr == 0)
     737  {
     738    dprintf(("KERNEL32:Win32PeLdrImage - %s.%s not found\n",
     739             WinDll->getName(),
     740             impname));
     741
    732742        fout << "--->>> NOT FOUND!";
    733743        *import = (ULONG)MissingApi;
     
    10081018    if(WinDll == NULL)
    10091019    {  //not found, so load it
    1010         if(isPEImage(pszCurModule) == FALSE) 
     1020        if(isPEImage(pszCurModule) == FALSE)
    10111021        {//LX image, so let OS/2 do all the work for us
    10121022                APIRET rc;
Note: See TracChangeset for help on using the changeset viewer.