Global: Cleanup some type/range checks.

This commit is contained in:
Unknown W. Brackets committed 2022-12-10 21:13:37 -08:00
1 parent 9cfcbc46e6
commit 1810692236
5 files changed
+11 -9

No files matched your search

+1 -1
View File
@@ -716,7 +716,7 @@ std::vector<std::string> WindowsCaptureDevice::getDeviceList(bool forceEnum, int
// Get the size needed first
dwMinSize = WideCharToMultiByte(CP_UTF8, NULL, pwstrName, -1, nullptr, 0, nullptr, FALSE);
if (dwMinSize == 0)
hr = -1;
hr = E_FAIL;
}
if (SUCCEEDED(hr)) {
cstrName = new char[dwMinSize];