diff options
Diffstat (limited to 'Stars45/Main.cpp')
-rw-r--r-- | Stars45/Main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Stars45/Main.cpp b/Stars45/Main.cpp index f4f4943..bd79886 100644 --- a/Stars45/Main.cpp +++ b/Stars45/Main.cpp @@ -11,6 +11,7 @@ #include "Starshatter.h" #include "StarServer.h" #include "HUDView.h" +#include "Utils.h" #include "NetHost.h" #include "NetAddr.h" @@ -33,7 +34,6 @@ // WinMain // +--------------------------------------------------------------------+ -extern FILE* ErrLog; extern int VD3D_describe_things; int dump_missions = 0; @@ -57,9 +57,9 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, int do_server = 0; if (strstr(lpCmdLine, "-server")) - ErrLog = fopen("serverlog.txt", "wb"); + AssignErrLog(fopen("serverlog.txt", "wb")); else - ErrLog = fopen("errlog.txt", "wb"); + AssignErrLog(fopen("errlog.txt", "wb")); PrintLogHeader(); @@ -148,7 +148,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, Print("+====================================================================+\n"); Print(" END OF LINE.\n"); - fclose(ErrLog); + CloseErrLog(); return result; } |