[misc] fix a VS2019 analysis warning

* Also fix minor whitespace issues.
This commit is contained in:
Pete Batard 2020-04-11 15:02:08 +01:00
parent 3c75ca92b4
commit 70fb34549b
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
3 changed files with 9 additions and 7 deletions

View file

@ -108,6 +108,8 @@ static BOOLEAN __stdcall FormatExCallback(FILE_SYSTEM_CALLBACK_COMMAND Command,
return FALSE;
assert((actual_fs_type >= 0) && (actual_fs_type < FS_MAX));
if ((actual_fs_type < 0) || (actual_fs_type >= FS_MAX))
return FALSE;
switch(Command) {
case FCC_PROGRESS: