Ignore:
Timestamp:
Nov 26, 1999, 1:05:20 AM (26 years ago)
Author:
sandervl
Message:

Allow executable api exports

File:
1 edited

Legend:

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

    r1811 r1844  
    1 /* $Id: wprocess.cpp,v 1.50 1999-11-22 20:35:52 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.51 1999-11-26 00:05:20 sandervl Exp $ */
    22
    33/*
     
    684684FARPROC WIN32API GetProcAddress(HMODULE hModule, LPCSTR lpszProc)
    685685{
    686  Win32DllBase *winmod;
     686 Win32ImageBase *winmod;
    687687 FARPROC   proc;
    688688 ULONG     ulAPIOrdinal;
    689689
    690   winmod = Win32DllBase::findModule((HINSTANCE)hModule);
     690  if(hModule == 0 || hModule == -1 || (WinExe && hModule == WinExe->getInstanceHandle())) {
     691        winmod = WinExe;
     692  }
     693  else  winmod = (Win32ImageBase *)Win32DllBase::findModule((HINSTANCE)hModule);
     694
    691695  if(winmod) {
    692696        ulAPIOrdinal = (ULONG)lpszProc;
Note: See TracChangeset for help on using the changeset viewer.