From daaa446f5895f605c44ce2d4c6b593455b27f273 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 2 Mar 2015 13:18:08 +0100 Subject: [PATCH] Remove redundant check --- plugins/check_disk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/check_disk.cpp b/plugins/check_disk.cpp index 2ae31b34b..988adb760 100644 --- a/plugins/check_disk.cpp +++ b/plugins/check_disk.cpp @@ -274,7 +274,7 @@ int check_drives(vector& vDrives) wcout << L"Getting logic drive string (includes network drives)" << endl; dwResult = GetLogicalDriveStrings(MAX_PATH, szLogicalDrives); - if (dwResult < 0 || dwResult > MAX_PATH) + if (dwResult > MAX_PATH) goto die; if (debug) wcout << L"Splitting string into single drive names" << endl;