Remove redundant check

This commit is contained in:
Gunnar Beutner 2015-03-02 13:18:08 +01:00
parent 09038eeb7c
commit daaa446f58
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ int check_drives(vector<drive>& 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;