mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows: Fix warnings reported by Coverity static code analyzer
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user