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);