Changeset 207
- Timestamp:
- Feb 14, 2025, 11:18:15 PM (6 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/classes/c/c_common/except.c
r144 r207 456 456 #if 0 457 457 CHAR TrapFile[CCHMAXPATH]; 458 CHAR *LogPath; 458 459 #endif 459 460 if (pERepRec->fHandlerFlags & EH_EXIT_UNWIND) … … 465 466 466 467 #if 0 467 sprintf(TrapFile,"%c:\\%s",_GetBootDriveLetter(), EXCEPTION_LOGFILE_NAME); 468 LogPath = getenv( "LOGFILES" ); 469 if (!LogPath) 470 sprintf(TrapFile,"%c:\\%s",_GetBootDriveLetter(), EXCEPTION_LOGFILE_NAME); 471 else 472 sprintf(TrapFile,"%s\\%s",LogPath, EXCEPTION_LOGFILE_NAME); 468 473 hTrap=fopen(TrapFile,"a"); 469 474 fprintf(hTrap,"fHandlerFlags: %x, ExceptionNum: %x\n",pERepRec->fHandlerFlags, pERepRec->ExceptionNum); … … 548 553 ULONG Nest; 549 554 CHAR TrapFile[CCHMAXPATH]; 555 CHAR *LogPath; 550 556 struct debug_buffer DbgBuf; 551 557 static CHAR Name[CCHMAXPATH]; … … 569 575 DosEnterMustComplete(&Nest); 570 576 571 sprintf(TrapFile,"%c:\\%s",_GetBootDriveLetter(), EXCEPTION_LOGFILE_NAME); 577 LogPath = getenv( "LOGFILES" ); 578 if (!LogPath) 579 sprintf(TrapFile,"%c:\\%s",_GetBootDriveLetter(), EXCEPTION_LOGFILE_NAME); 580 else 581 sprintf(TrapFile,"%s\\%s",LogPath, EXCEPTION_LOGFILE_NAME); 572 582 573 583 hTrap=fopen(TrapFile,"a"); -
trunk/common_functions/sys_funcs.c
r4 r207 95 95 char logNameLocal[CCHMAXPATH]; 96 96 FILE *fHandle; 97 98 sprintf(logNameLocal,"%c:\\%s", SysQueryBootDriveLetter(), EXCEPTION_LOGFILE_NAME); 97 CHAR *LogPath; 98 99 100 LogPath = getenv( "LOGFILES" ); 101 if (!LogPath) 102 sprintf(logNameLocal,"%c:\\%s",SysQueryBootDriveLetter(), EXCEPTION_LOGFILE_NAME); 103 else 104 sprintf(logNameLocal,"%s\\%s",LogPath, EXCEPTION_LOGFILE_NAME); 105 99 106 fHandle=fopen(logNameLocal,"a"); 100 107 if(fHandle) { -
trunk/mediafolder/c/helper/except.cpp
r108 r207 551 551 ULONG Nest; 552 552 CHAR TrapFile[20]; 553 CHAR *LogPath; 553 554 struct debug_buffer DbgBuf; 554 555 static CHAR Name[CCHMAXPATH]; … … 569 570 DosEnterMustComplete(&Nest); 570 571 571 sprintf(TrapFile,"%c:\\%s",_GetBootDriveLetter(), EXCEPTION_LOGFILE_NAME); 572 LogPath = getenv( "LOGFILES" ); 573 if (!LogPath) 574 sprintf(TrapFile,"%c:\\%s",_GetBootDriveLetter(), EXCEPTION_LOGFILE_NAME); 575 else 576 sprintf(TrapFile,"%s\\%s",LogPath, EXCEPTION_LOGFILE_NAME); 572 577 573 578 hTrap=fopen(TrapFile,"a");
Note:
See TracChangeset
for help on using the changeset viewer.