Windows: Fix warnings reported by Coverity static code analyzer

This commit is contained in:
Mounir IDRASSI committed 2020-02-10 02:23:18 +01:00
1 parent a7b61ce5e5
commit c1d670fd75
4 files changed
+37 -17

No files matched your search

+7
View File
@@ -5157,7 +5157,14 @@ static BOOL Dismount (HWND hwndDlg, int nDosDriveNo)
WaitCursor ();
if (nDosDriveNo == -2)
{
nDosDriveNo = (char) (HIWORD (GetSelectedLong (GetDlgItem (hwndDlg, IDC_DRIVELIST))) - L'A');
if (nDosDriveNo < 0 || nDosDriveNo >= 26)
{
NormalCursor ();
return FALSE;
}
}
if (bCloseDismountedWindows)
{