Changeset 4618 for trunk/tools/database/APIImport.cpp
- Timestamp:
- Nov 19, 2000, 9:28:13 AM (25 years ago)
- 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:42bird Exp $ */1 /* $Id: APIImport.cpp,v 1.7 2000-11-19 08:28:13 bird Exp $ */ 2 2 /* 3 3 * … … 17 17 18 18 #include "APIImport.h" 19 #include "kFile.h" 19 20 #include "kFileFormatBase.h" 20 21 #include "kFilePE.h" … … 242 243 { 243 244 kFileFormatBase *pFile; 244 FILE *phFile;245 245 long lRc = 1; 246 246 247 247 /* try open file */ 248 phFile = fopen(pszFilename, "rb"); 249 if (phFile != NULL) 248 try 250 249 { 250 kFile InFile(pszFilename); 251 251 252 try 252 253 { … … 258 259 try 259 260 { 260 pFile = new kFilePE(phFile); 261 /* pFile = new kFilePE(&InFile); - TODO - FIXME!!! */ 262 throw ((int)50); 261 263 } 262 264 catch (int i) 263 265 { 264 266 i = i; 265 pFile = new kFileDef( phFile);267 pFile = new kFileDef(&InFile); 266 268 } 267 269 … … 367 369 fprintf(phLog, "%s: error - could not map dll/def into memory, errorno=%d.\n", pszFilename, err); 368 370 } 369 fclose(phFile);370 371 } 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 } 373 376 374 377 /* close db */
Note:
See TracChangeset
for help on using the changeset viewer.