Ignore:
Timestamp:
Oct 6, 1999, 1:26:02 AM (26 years ago)
Author:
phaller
Message:

Fix: problems while initializing SHELL32/NEW

File:
1 edited

Legend:

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

    r1075 r1146  
    1 /* $Id: winimagepeldr.cpp,v 1.3 1999-09-28 00:37:39 phaller Exp $ */
     1/* $Id: winimagepeldr.cpp,v 1.4 1999-10-05 23:23:47 phaller Exp $ */
    22
    33/*
     
    351351  hinstance = (HINSTANCE)realBaseAddress;
    352352
    353   if(processImports((char *)win32file) == FALSE) {
    354         fout << "Failed to process imports!" << endl;
    355         goto failure;
    356   }
    357 
     353  //PH: get pResDir pointer correct first, since processImports may
     354  //    implicitly call functions depending on it.
    358355  IMAGE_SECTION_HEADER sh;
    359356  if(GetSectionHdrByName (win32file, &sh, ".rsrc")) {
     
    361358        pResDir = (PIMAGE_RESOURCE_DIRECTORY)(sh.VirtualAddress + realBaseAddress);
    362359        pResourceSectionStart = (ULONG)pResSection->virtaddr - oh.ImageBase;
     360  }
     361
     362  if(processImports((char *)win32file) == FALSE) {
     363        fout << "Failed to process imports!" << endl;
     364        goto failure;
    363365  }
    364366
Note: See TracChangeset for help on using the changeset viewer.