Changeset 3058 for trunk/src


Ignore:
Timestamp:
Mar 9, 2000, 8:01:55 PM (25 years ago)
Author:
sandervl
Message:

include headers from kernel32 dir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/peldr/pe.cpp

    r2572 r3058  
    1 /* $Id: pe.cpp,v 1.13 2000-01-30 14:48:51 sandervl Exp $ */
     1/* $Id: pe.cpp,v 1.14 2000-03-09 19:01:55 sandervl Exp $ */
    22
    33/*
     
    2525#include <win32type.h>
    2626#include <misc.h>
    27 #include <winexepeldr.h>
    2827#include <wprocess.h>
     28#include <win\peexe.h>
    2929#include "pe.h"
    3030
     
    3737char szExeErrorMsg[]    = "File isn't an executable";
    3838char szInteralErrorMsg[]= "Internal Error";
    39 char szNoKernel32Msg[]  = "Can't load/find kernel32.dll";
     39char szNoKernel32Msg[]  = "Can't load/find kernel32.dll (rc=%d)";
    4040
    4141char fullpath[CCHMAXPATH];
     
    6161KRNL32EXCEPTPROC       Krnl32UnsetExceptionHandler = 0;
    6262
     63//should be the same as in ..\kernel32\winexepeldr.h
     64typedef BOOL (* WIN32API WIN32CTOR)(char *, ULONG);
     65
    6366WIN32CTOR              CreateWin32Exe       = 0;
    6467
     
    102105  rc = DosLoadModule(exeName, sizeof(exeName), "KERNEL32.DLL", &hmodKernel32);
    103106  if(rc) {
    104         MyWinMessageBox(HWND_DESKTOP, NULL, szNoKernel32Msg, szErrorTitle, 0, MB_OK | MB_ERROR | MB_MOVEABLE);
     107        sprintf(exeName, szNoKernel32Msg, rc);
     108        MyWinMessageBox(HWND_DESKTOP, NULL, exeName, szErrorTitle, 0, MB_OK | MB_ERROR | MB_MOVEABLE);
    105109        goto fail;
    106110  }
Note: See TracChangeset for help on using the changeset viewer.