From 40cba8eb5dda46a3d3725d02868a170c8030b51b Mon Sep 17 00:00:00 2001 From: Jean Flach Date: Tue, 13 Jan 2015 09:51:49 +0100 Subject: [PATCH] Fix another case where debug lines were displayed --- plugins/check_disk.cpp | 4 ++-- plugins/check_update.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/check_disk.cpp b/plugins/check_disk.cpp index d410a02ec..5ec0a273f 100644 --- a/plugins/check_disk.cpp +++ b/plugins/check_disk.cpp @@ -313,8 +313,8 @@ int check_drives(vector& vDrives) sDrives.insert(wstring(szVolumePathNames)); FindNextVolume(hVolume, szVolumeName, MAX_PATH); } - - wcout << L"Creating vector from found volumes, removing cd drives etc.:" << endl; + if (debug) + wcout << L"Creating vector from found volumes, removing cd drives etc.:" << endl; for (set::iterator it = sDrives.begin(); it != sDrives.end(); ++it) { UINT type = GetDriveType(it->c_str()); if (type == DRIVE_FIXED || type == DRIVE_REMOTE) { diff --git a/plugins/check_update.cpp b/plugins/check_update.cpp index 67a7d867a..55088215d 100644 --- a/plugins/check_update.cpp +++ b/plugins/check_update.cpp @@ -256,7 +256,7 @@ int check_update(printInfoStruct& printInfo) SysFreeString(criteria); CoUninitialize(); - return 0; + return -1; die: die(err);