Commit 27eacba8 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

ICreateDevEnum_CreateClassEnumerator can return S_FALSE when

there is no category, so return MK_E_NOOBJECT from IParseDisplayName_ParseDisplayName.
parent cb84de98
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment