From 27eacba89db008fa87407c2d8a489b03680d5ea4 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Tue, 5 Aug 2003 18:26:57 +0000 Subject: [PATCH] ICreateDevEnum_CreateClassEnumerator can return S_FALSE when there is no category, so return MK_E_NOOBJECT from IParseDisplayName_ParseDisplayName. --- dlls/devenum/parsedisplayname.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/devenum/parsedisplayname.c b/dlls/devenum/parsedisplayname.c index a1628ebb6bc..306671cd94e 100644 --- a/dlls/devenum/parsedisplayname.c +++ b/dlls/devenum/parsedisplayname.c @@ -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))