mirror of https://github.com/Icinga/icinga2.git
Remove redundant check
This commit is contained in:
parent
09038eeb7c
commit
daaa446f58
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue