msi: Return the right error from ITERATE_RegisterTypeLibraries.
This commit is contained in:
parent
98761037ab
commit
82d50fa675
|
@ -2933,7 +2933,7 @@ static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param)
|
|||
if (FAILED(hr))
|
||||
{
|
||||
ERR("Failed to load type library: %08x\n", hr);
|
||||
return ERROR_FUNCTION_FAILED;
|
||||
return ERROR_INSTALL_FAILURE;
|
||||
}
|
||||
|
||||
ITypeLib_Release(tlib);
|
||||
|
|
|
@ -8090,7 +8090,7 @@ static void test_register_typelib(void)
|
|||
MsiSetInternalUI(INSTALLUILEVEL_NONE, NULL);
|
||||
|
||||
r = MsiInstallProductA(msifile, "REGISTER_TYPELIB=1");
|
||||
todo_wine ok(r == ERROR_INSTALL_FAILURE, "Expected ERROR_INSTALL_FAILURE, got %u\n", r);
|
||||
ok(r == ERROR_INSTALL_FAILURE, "Expected ERROR_INSTALL_FAILURE, got %u\n", r);
|
||||
|
||||
r = MsiInstallProductA(msifile, NULL);
|
||||
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", r);
|
||||
|
|
Loading…
Reference in New Issue