ICreateDevEnum_CreateClassEnumerator can return S_FALSE when

there is no category, so return MK_E_NOOBJECT from
IParseDisplayName_ParseDisplayName.
This commit is contained in:
Robert Shearman 2003-08-05 18:26:57 +00:00 committed by Alexandre Julliard
parent cb84de9851
commit 27eacba89d
1 changed files with 2 additions and 0 deletions

View File

@ -132,6 +132,8 @@ static HRESULT WINAPI DEVENUM_IParseDisplayName_ParseDisplayName(
if (SUCCEEDED(res)) if (SUCCEEDED(res))
{ {
res = DEVENUM_ICreateDevEnum_CreateClassEnumerator((ICreateDevEnum *)(char*)&DEVENUM_CreateDevEnum, &clsidDevice, &pEm, 0); 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)) if (SUCCEEDED(res))