Ignore:
Timestamp:
Nov 19, 2000, 9:28:13 AM (25 years ago)
Author:
bird
Message:

kFileDef has changed parameters.
kfilePe has not - temporary disabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/database/APIImport.cpp

    r3882 r4618  
    1 /* $Id: APIImport.cpp,v 1.6 2000-07-21 21:09:42 bird Exp $ */
     1/* $Id: APIImport.cpp,v 1.7 2000-11-19 08:28:13 bird Exp $ */
    22/*
    33 *
     
    1717
    1818#include "APIImport.h"
     19#include "kFile.h"
    1920#include "kFileFormatBase.h"
    2021#include "kFilePE.h"
     
    242243{
    243244    kFileFormatBase  *pFile;
    244     FILE             *phFile;
    245245    long              lRc = 1;
    246246
    247247    /* try open file */
    248     phFile = fopen(pszFilename, "rb");
    249     if (phFile != NULL)
     248    try
    250249    {
     250        kFile InFile(pszFilename);
     251
    251252        try
    252253        {
     
    258259            try
    259260            {
    260                 pFile = new kFilePE(phFile);
     261                /* pFile = new kFilePE(&InFile); - TODO - FIXME!!! */
     262                throw ((int)50);
    261263            }
    262264            catch (int i)
    263265            {
    264266                i = i;
    265                 pFile = new kFileDef(phFile);
     267                pFile = new kFileDef(&InFile);
    266268            }
    267269
     
    367369            fprintf(phLog, "%s: error - could not map dll/def into memory, errorno=%d.\n", pszFilename, err);
    368370        }
    369         fclose(phFile);
    370371    }
    371     else
    372         fprintf(phLog, "%s: error - could not open file.\n", pszFilename);
     372    catch (int err)
     373    {
     374        fprintf(phLog, "%s: error - could not open file, errorno=%d.\n", pszFilename, err);
     375    }
    373376
    374377    /* close db */
Note: See TracChangeset for help on using the changeset viewer.