mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 22:40:29 +02:00
Global: Cleanup some type/range checks.
This commit is contained in:
1 parent
9cfcbc46e6
commit
1810692236
5 files changed
+11
-9
No files matched your search
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user