oleaut32: Fix a one-off test failure in the tmarshal tests - TYPE_E_LIBNOTREGISTERED is an expected return value.
This commit is contained in:
parent
0f45b2badf
commit
7574fede93
|
@ -662,12 +662,13 @@ static IKindaEnumWidget *KindaEnumWidget_Create(void)
|
||||||
ITypeLib *pTypeLib;
|
ITypeLib *pTypeLib;
|
||||||
|
|
||||||
hr = LoadRegTypeLib(&LIBID_TestTypelib, 1, 0, LOCALE_NEUTRAL, &pTypeLib);
|
hr = LoadRegTypeLib(&LIBID_TestTypelib, 1, 0, LOCALE_NEUTRAL, &pTypeLib);
|
||||||
ok_ole_success(hr, LoadRegTypeLib);
|
|
||||||
if (hr == TYPE_E_LIBNOTREGISTERED)
|
if (hr == TYPE_E_LIBNOTREGISTERED)
|
||||||
{
|
{
|
||||||
hr = register_current_module_typelib(&pTypeLib);
|
hr = register_current_module_typelib(&pTypeLib);
|
||||||
ok_ole_success(hr, register_current_module_typelib);
|
ok_ole_success(hr, register_current_module_typelib);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
ok_ole_success(hr, LoadRegTypeLib);
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
ITypeLib_Release(pTypeLib);
|
ITypeLib_Release(pTypeLib);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue