Ignore:
Timestamp:
Aug 17, 1999, 6:35:30 PM (26 years ago)
Author:
phaller
Message:

Fix: removed ODINCRT remains

File:
1 edited

Legend:

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

    r484 r529  
    1 /* $Id: wprocess.cpp,v 1.18 1999-08-11 22:27:56 phaller Exp $ */
     1/* $Id: wprocess.cpp,v 1.19 1999-08-17 16:35:11 phaller Exp $ */
    22
    33/*
     
    1414#include <stdlib.h>
    1515#include <string.h>
    16 #include <odincrt.h>
    1716#include <odinwrap.h>
    1817
     
    4342extern "C" ULONG QueryExceptionChain();
    4443
    45 
    46 ODINDEBUGCHANNEL(KERNEL32-WPROCESS)
    4744
    4845//******************************************************************************
     
    211208{
    212209  if(WinExe != NULL) //should never happen
    213     ODIN_delete(WinExe);
     210    delete WinExe;
    214211
    215212
     
    223220  Win32Exe *winexe;
    224221
    225   ODIN_FS_BEGIN
    226222  winexe = new Win32Exe(0, NameTableId, Win32TableId);
    227   ODIN_FS_END
    228223
    229224  if(winexe) {
     
    288283   else {
    289284      //converted win32 dll loaded by OS/2 loader
    290       ODIN_FS_BEGIN
    291285      winmod = new Win32Dll(hinstance, NameTableId, Win32TableId, pfnDllEntry);
    292       ODIN_FS_END
    293286      if(winmod == NULL) {
    294287            eprintf(("Failed to allocate module object!\n"));
     
    328321
    329322  if(WinExe) {
    330     ODIN_delete(WinExe);
     323    delete WinExe;
    331324    WinExe = NULL;
    332325  }
     
    400393    }
    401394
    402     ODIN_FS_BEGIN
    403395    module = new Win32Dll((char *)lpszLibFile);
    404     ODIN_FS_END
    405396    if(module == NULL)
    406397        return(0);
     
    409400    if(module->getError() != NO_ERROR) {
    410401        dprintf(("LoadLibary %s failed (::init)\n", lpszLibFile));
    411         ODIN_delete(module);
     402        delete module;
    412403        return(0);
    413404    }
    414405    if(module->attachProcess() == FALSE) {
    415406        dprintf(("LoadLibary %s failed (::attachProcess)\n", lpszLibFile));
    416         ODIN_delete(module);
     407        delete module;
    417408        return(0);
    418409    }
     
    425416
    426417
    427 ODINFUNCTION1(HINSTANCE,LoadLibraryA,LPCTSTR,lpszLibFile)
    428 //HINSTANCE WIN32API LoadLibraryA(LPCTSTR lpszLibFile)
     418HINSTANCE WIN32API LoadLibraryA(LPCTSTR lpszLibFile)
    429419{
    430420  HINSTANCE hDll;
     
    474464    }
    475465
    476     ODIN_FS_BEGIN
    477466    module = new Win32Dll((char *)lpszLibFile);
    478     ODIN_FS_END
    479 
    480467    if(module == NULL)
    481468        return(0);
     
    484471    if(module->getError() != NO_ERROR) {
    485472        dprintf(("LoadLibary %s failed (::init)\n", lpszLibFile));
    486         ODIN_delete(module);
     473        delete module;
    487474        return(0);
    488475    }
     
    492479    if(module->attachProcess() == FALSE) {
    493480        dprintf(("LoadLibary %s failed (::attachProcess)\n", lpszLibFile));
    494         ODIN_delete(module);
     481        delete module;
    495482        return(0);
    496483    }
Note: See TracChangeset for help on using the changeset viewer.