Commit 88adb53b authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

Don't fail in RegisterFonts if the Fonts table is missing.

parent 5211e49e
...@@ -6391,16 +6391,22 @@ static UINT ACTION_RegisterFonts(MSIPACKAGE *package) ...@@ -6391,16 +6391,22 @@ static UINT ACTION_RegisterFonts(MSIPACKAGE *package)
HKEY hkey1; HKEY hkey1;
HKEY hkey2; HKEY hkey2;
TRACE("%p\n", package);
rc = MSI_DatabaseOpenViewW(package->db, ExecSeqQuery, &view); rc = MSI_DatabaseOpenViewW(package->db, ExecSeqQuery, &view);
if (rc != ERROR_SUCCESS) if (rc != ERROR_SUCCESS)
return rc; {
TRACE("MSI_DatabaseOpenViewW failed: %d\n", rc);
return ERROR_SUCCESS;
}
rc = MSI_ViewExecute(view, 0); rc = MSI_ViewExecute(view, 0);
if (rc != ERROR_SUCCESS) if (rc != ERROR_SUCCESS)
{ {
MSI_ViewClose(view); MSI_ViewClose(view);
msiobj_release(&view->hdr); msiobj_release(&view->hdr);
return rc; TRACE("MSI_ViewExecute returned %d\n", rc);
return ERROR_SUCCESS;
} }
RegCreateKeyW(HKEY_LOCAL_MACHINE,regfont1,&hkey1); RegCreateKeyW(HKEY_LOCAL_MACHINE,regfont1,&hkey1);
...@@ -6465,6 +6471,7 @@ static UINT ACTION_RegisterFonts(MSIPACKAGE *package) ...@@ -6465,6 +6471,7 @@ static UINT ACTION_RegisterFonts(MSIPACKAGE *package)
RegCloseKey(hkey1); RegCloseKey(hkey1);
RegCloseKey(hkey2); RegCloseKey(hkey2);
TRACE("returning %d\n", rc);
return rc; return rc;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment