Ignore:
Timestamp:
Aug 23, 1999, 3:55:08 PM (26 years ago)
Author:
sandervl
Message:

Logfile changes

File:
1 edited

Legend:

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

    r622 r646  
    1 /* $Id: winimage.cpp,v 1.13 1999-08-22 14:24:35 sandervl Exp $ */
     1/* $Id: winimage.cpp,v 1.14 1999-08-23 13:54:43 sandervl Exp $ */
    22
    33/*
     
    3535#include "winres.h"
    3636#include "os2util.h"
     37#include "initterm.h"
    3738
    3839char szErrorTitle[]     = "Win32 for OS/2";
     
    7172  fNativePEImage = TRUE;
    7273
    73   if(foutInit == FALSE) {
    74     fout.open("pe.log", ios::out | ios::trunc);
    75     foutInit = TRUE;
    76   }
    7774  strcpy(this->szFileName, szFileName);
    7875
     
    8784  if(dot)
    8885        *dot = 0;
     86
     87  if(foutInit == FALSE) {
     88    char logname[32];
     89        sprintf(logname, "pe_%d.log", loadNr);
     90        fout.open(logname, ios::out | ios::trunc);
     91        dprintf(("PE LOGFILE for %s: %s (rc=%d)", szModule, logname));
     92        foutInit = TRUE;
     93  }
    8994
    9095#ifdef DEBUG
Note: See TracChangeset for help on using the changeset viewer.