ICreateDevEnum_CreateClassEnumerator can return S_FALSE when
there is no category, so return MK_E_NOOBJECT from IParseDisplayName_ParseDisplayName.
This commit is contained in:
parent
cb84de9851
commit
27eacba89d
|
@ -132,6 +132,8 @@ static HRESULT WINAPI DEVENUM_IParseDisplayName_ParseDisplayName(
|
|||
if (SUCCEEDED(res))
|
||||
{
|
||||
res = DEVENUM_ICreateDevEnum_CreateClassEnumerator((ICreateDevEnum *)(char*)&DEVENUM_CreateDevEnum, &clsidDevice, &pEm, 0);
|
||||
if (res == S_FALSE) /* S_FALSE means no category */
|
||||
res = MK_E_NOOBJECT;
|
||||
}
|
||||
|
||||
if (SUCCEEDED(res))
|
||||
|
|
Loading…
Reference in New Issue