Changeset 21916 for trunk/src/kernel32/winimagepeldr.cpp
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/src/kernel32/winimagepeldr.cpp
r21355 r21916 40 40 #include <stdlib.h> 41 41 42 #include <assert.h> 42 #ifdef DEBUG 43 #include <process.h> 43 44 //use a different logfile 44 45 #define PRIVATE_LOGGING 46 static FILE *_privateLogFile = NULL; 47 #endif 48 49 #include <assert.h> 45 50 #include <misc.h> 46 51 #include <win32api.h> … … 56 61 #include "oslibmisc.h" 57 62 #include "initterm.h" 58 #include <win \virtual.h>63 #include <win/virtual.h> 59 64 #include "oslibdos.h" 60 65 #include "oslibmem.h" … … 71 76 char szErrorModule[260] = ""; 72 77 73 #ifdef DEBUG74 static FILE *_privateLogFile = NULL;75 #endif76 77 78 ULONG WIN32API MissingApiOrd(char *parentimage, char *dllname, int ordinal); 78 79 ULONG WIN32API MissingApiName(char *parentimage, char *dllname, char *functionname); … … 86 87 char logname[CCHMAXPATH]; 87 88 88 sprintf(logname, "pe_%d.log", loadNr);89 sprintf(logname, "pe_%d.log", getpid()); 89 90 _privateLogFile = fopen(logname, "w"); 90 91 if(_privateLogFile == NULL) { 91 sprintf(logname, "%spe_%d.log", kernel32Path, loadNr);92 sprintf(logname, "%spe_%d.log", kernel32Path, getpid()); 92 93 _privateLogFile = fopen(logname, "w"); 93 94 } … … 603 604 for (i = 0; i < IMAGE_NUMBEROF_DIRECTORY_ENTRIES; i++) 604 605 { 605 c har *pszName;606 const char *pszName; 606 607 607 608 if(oh.DataDirectory[i].VirtualAddress && oh.DataDirectory[i].Size) {
Note:
See TracChangeset
for help on using the changeset viewer.