aboutsummaryrefslogtreecommitdiff
path: root/src/SFileGetFileInfo.cpp
diff options
context:
space:
mode:
authorAnders Jenbo <anders@jenbo.dk>2021-07-17 16:55:37 +0200
committerGitHub <noreply@github.com>2021-07-17 16:55:37 +0200
commit29bef29a2b60b288f2fdff0ab372de67c218ebf1 (patch)
tree70eefc147e74496974d777fa09005bd3d2423da8 /src/SFileGetFileInfo.cpp
parentc5fb5c7dfa40ae1304ac2ebf1431a9d6a2ba4d13 (diff)
Fix enumeration values not handled in switch warning
Diffstat (limited to 'src/SFileGetFileInfo.cpp')
-rw-r--r--src/SFileGetFileInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SFileGetFileInfo.cpp b/src/SFileGetFileInfo.cpp
index 6c217a6..5bc3a3f 100644
--- a/src/SFileGetFileInfo.cpp
+++ b/src/SFileGetFileInfo.cpp
@@ -441,10 +441,10 @@ bool WINAPI SFileGetFileInfo(
case SFileInfoCRC32:
return GetInfo(pvFileInfo, cbFileInfo, &hf->pFileEntry->dwCrc32, sizeof(DWORD), pcbLengthNeeded);
+ default:
+ // Invalid info class
+ return GetInfo_ReturdwErrCode(ERROR_INVALID_PARAMETER);
}
-
- // Invalid info class
- return GetInfo_ReturdwErrCode(ERROR_INVALID_PARAMETER);
}
bool WINAPI SFileFreeFileInfo(void * pvFileInfo, SFileInfoClass InfoClass)