mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user