Skip to content

Commit 5834c26

Browse files
committed
Update conmain.cpp
1 parent 22aea6d commit 5834c26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CConsole/src/conmain.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,8 @@ int WINAPI WinMain(const HINSTANCE hInstance, const HINSTANCE hPrevInstance, con
420420
con.L();
421421
con.OLn("");
422422

423+
// normally it is not recommended to pass a simple Console reference because other functions might change the logger module name.
424+
// However in this program, CConsole::SetLoggerModuleName() is not invoked anywhere, so we are ok.
423425
TestDefaultColors(con);
424426
TestErrorMode(con);
425427
TestCustomColors(con);

0 commit comments

Comments
 (0)