devenum/tests: Accept ERROR_KEY_DOES_NOT_EXIST from IPropertyBag_Read.

Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Detlef Riekenberg 2019-03-20 08:44:10 +01:00 committed by Alexandre Julliard
parent 5fa06bbc30
commit 9ceb9720e8
1 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,7 @@
#include "mmddk.h" #include "mmddk.h"
#include "vfw.h" #include "vfw.h"
#include "dmoreg.h" #include "dmoreg.h"
#include "setupapi.h"
DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0); DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
@ -122,7 +123,8 @@ static void test_devenum(IBindCtx *bind_ctx)
ok(hr == S_OK, "IMoniker_BindToStorage failed with error %x\n", hr); ok(hr == S_OK, "IMoniker_BindToStorage failed with error %x\n", hr);
hr = IPropertyBag_Read(prop_bag, friendly_name, &var, NULL); hr = IPropertyBag_Read(prop_bag, friendly_name, &var, NULL);
ok(hr == S_OK, "IPropertyBag_Read failed: %#x\n", hr); ok((hr == S_OK) | (hr == ERROR_KEY_DOES_NOT_EXIST),
"IPropertyBag_Read failed: %#x\n", hr);
if (winetest_debug > 1) if (winetest_debug > 1)
trace(" %s %s\n", wine_dbgstr_w(displayname), wine_dbgstr_w(V_BSTR(&var))); trace(" %s %s\n", wine_dbgstr_w(displayname), wine_dbgstr_w(V_BSTR(&var)));