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;