diff options
Diffstat (limited to 'Magic2/Magic.cpp')
-rw-r--r-- | Magic2/Magic.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Magic2/Magic.cpp b/Magic2/Magic.cpp index 505c353..b034ce0 100644 --- a/Magic2/Magic.cpp +++ b/Magic2/Magic.cpp @@ -18,6 +18,7 @@ #include "MainFrm.h" #include "MagicDoc.h" #include "MagicView.h" +#include "Utils.h" #include "MachineInfo.h" @@ -44,13 +45,11 @@ END_MESSAGE_MAP() // +--------------------------------------------------------------------+ -extern FILE* ErrLog; extern int VD3D_describe_things; -void Print(const char* msg, ...); static void PrintLogHeader() { - ErrLog = fopen("errlog.txt", "w"); + AssignErrLog(fopen("errlog.txt", "w")); Print("+====================================================================+\n"); Print("| Magic 2.0 |\n"); @@ -71,7 +70,7 @@ Magic::~Magic() Print("+====================================================================+\n"); Print(" END OF LINE.\n"); - fclose(ErrLog); + CloseErrLog(); Clock::Close(); } |