oleaut32: Fix a one-off test failure in the tmarshal tests - TYPE_E_LIBNOTREGISTERED is an expected return value.

This commit is contained in:
Rob Shearman 2007-02-07 19:20:15 +00:00 committed by Alexandre Julliard
parent 0f45b2badf
commit 7574fede93
1 changed files with 2 additions and 1 deletions

View File

@ -662,12 +662,13 @@ static IKindaEnumWidget *KindaEnumWidget_Create(void)
ITypeLib *pTypeLib;
hr = LoadRegTypeLib(&LIBID_TestTypelib, 1, 0, LOCALE_NEUTRAL, &pTypeLib);
ok_ole_success(hr, LoadRegTypeLib);
if (hr == TYPE_E_LIBNOTREGISTERED)
{
hr = register_current_module_typelib(&pTypeLib);
ok_ole_success(hr, register_current_module_typelib);
}
else
ok_ole_success(hr, LoadRegTypeLib);
if (SUCCEEDED(hr))
ITypeLib_Release(pTypeLib);