Changeset 2061 for trunk/src/kernel32/misc.cpp
- Timestamp:
- Dec 12, 1999, 3:32:38 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/misc.cpp
r1708 r2061 1 /* $Id: misc.cpp,v 1.1 4 1999-11-11 19:10:09sandervl Exp $ */1 /* $Id: misc.cpp,v 1.15 1999-12-12 14:32:38 sandervl Exp $ */ 2 2 3 3 /* … … 28 28 #include <misc.h> 29 29 #include "initterm.h" 30 #include "logging.h" 30 31 31 32 /***************************************************************************** … … 284 285 } 285 286 //****************************************************************************** 287 //****************************************************************************** 288 int SYSTEM EXPORT WritePrivateLog(void *logfile, char *tekst, ...) 289 { 290 USHORT sel = RestoreOS2FS(); 291 va_list argptr; 292 293 if(fLogging && logfile) 294 { 295 va_start(argptr, tekst); 296 vfprintf((FILE *)logfile, tekst, argptr); 297 va_end(argptr); 298 299 if(tekst[strlen(tekst)-1] != '\n') 300 fprintf((FILE *)logfile, "\n"); 301 } 302 303 SetFS(sel); 304 return 1; 305 } 306 //****************************************************************************** 286 307 //NOTE: No need to save/restore FS, as our FS selectors have already been 287 308 // destroyed and FS == 0x150B. … … 291 312 fclose(flog); 292 313 flog = 0; 314 } 315 //****************************************************************************** 316 //Used to open any private logfiles used in kernel32 (for now only in winimagepeldr.cpp) 317 //****************************************************************************** 318 void OpenPrivateLogFiles() 319 { 320 OpenPrivateLogFilePE(); 321 } 322 //****************************************************************************** 323 //Used to close all private logfiles used in kernel32 (for now only in winimagepeldr.cpp) 324 //****************************************************************************** 325 void ClosePrivateLogFiles() 326 { 327 ClosePrivateLogFilePE(); 293 328 } 294 329 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.