mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-13 09:40:13 +01:00
USB: Resolve an EyeToy crash when no webcam is connected
This commit is contained in:
1 parent
7117633204
commit
319287dbe5
1 file changed
+4
-4
@@ -64,8 +64,8 @@ namespace usb_eyetoy
|
||||
}
|
||||
|
||||
IEnumMoniker* pEnum = 0;
|
||||
hr = pCreateDevEnum->CreateClassEnumerator(CLSID_VideoInputDeviceCategory, &pEnum, NULL);
|
||||
if (FAILED(hr))
|
||||
hr = pCreateDevEnum->CreateClassEnumerator(CLSID_VideoInputDeviceCategory, &pEnum, 0);
|
||||
if (hr != S_OK)
|
||||
{
|
||||
Console.Warning("You have no video capture hardware");
|
||||
return devList;
|
||||
@@ -148,8 +148,8 @@ namespace usb_eyetoy
|
||||
}
|
||||
|
||||
IEnumMoniker* pEnum = 0;
|
||||
hr = pCreateDevEnum->CreateClassEnumerator(CLSID_VideoInputDeviceCategory, &pEnum, NULL);
|
||||
if (FAILED(hr))
|
||||
hr = pCreateDevEnum->CreateClassEnumerator(CLSID_VideoInputDeviceCategory, &pEnum, 0);
|
||||
if (hr != S_OK)
|
||||
{
|
||||
Console.Warning("You have no video capture hardware");
|
||||
return -1;
|
||||
|
||||
Reference in new issue
Block a user