diff --git a/CLTool/src/clwin32.cpp b/CLTool/src/clwin32.cpp index 4afb334..ba70d91 100644 --- a/CLTool/src/clwin32.cpp +++ b/CLTool/src/clwin32.cpp @@ -232,7 +232,10 @@ int _tmain(int argc, _TCHAR* argv[]) settings.iQuality = quality; settings.iNumCompressions = numCompressions; settings.iJobSize = numJobs; - settings.logStream = &logStream; + if(bSaveLog) + settings.logStream = &logStream; + else + settings.logStream = NULL; CompressedImage *ci = CompressImage(&img, settings); if(NULL == ci) {