Ignore:
Timestamp:
Jun 20, 1999, 12:55:37 PM (26 years ago)
Author:
sandervl
Message:

* empty log message *

File:
1 edited

Legend:

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

    r120 r126  
    1 /* $Id: winexe.cpp,v 1.6 1999-06-19 10:54:43 sandervl Exp $ */
     1/* $Id: winexe.cpp,v 1.7 1999-06-20 10:55:36 sandervl Exp $ */
    22
    33/*
     
    2121#include <iostream.h>
    2222#include <fstream.h>
    23 #include "misc.h"
    24 #include "nameid.h"
    25 #include "win32type.h"
     23#include <misc.h>
     24#include <nameid.h>
     25#include <win32type.h>
    2626#include <winexe.h>
    27 #include "wprocess.h"
    28 #include "pefile.h"
     27#include <wprocess.h>
     28#include <pefile.h>
    2929#include "cio.h"
    3030
    3131#include "conwin.h"          // Windows Header for console only
    3232#include "console.h"
    33 #include "handlemanager.h"
    34 
    3533
    3634Win32Exe *WinExe = NULL;
     
    4644  dprintf(("Win32Exe ctor: %s", szFileName));
    4745
    48   HMInitialize();             /* store standard handles within HandleManager */
    49   dprintf(("KERNEL32/WINEXE: HandleManager Initialized.\n"));
    5046  if(fConsoleApp) {
    5147   dprintf(("Console application!\n"));
     
    6258         fConsoleApp(FALSE), cmdline(NULL), OS2InstanceHandle(-1)
    6359{
    64   HMInitialize();             /* store standard handles within HandleManager */
    65   dprintf(("KERNEL32/WINEXE: HandleManager Initialized.\n"));
    66 
    6760  if(GET_CONSOLE(Win32TableId) == 1) {//console app
    6861   dprintf(("Console application!\n"));
     
    8679ULONG Win32Exe::start()
    8780{
     81 ULONG rc;
     82
    8883  if(getenv("WIN32_IOPL2")) {
    8984   io_init1();
     
    9287
    9388  fExeStarted  = TRUE;
    94   return ((WIN32EXEENTRY)entryPoint)();
     89  SetWin32TIB();
     90  rc = ((WIN32EXEENTRY)entryPoint)();
     91  RestoreOS2TIB();
     92  return rc;
    9593}
    9694//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.