mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[WINESYNC] msi: Return ERROR_INVALID_HANDLE when MsiDatabaseApplyTransform() is called from a custom action.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id ed5f4bd14f5cece4bca63918b924606a09a3300d by Zebediah Figura <z.figura12@gmail.com>
This commit is contained in:
parent
72c4091cef
commit
115d04ba20
2 changed files with 3 additions and 13 deletions
|
@ -884,18 +884,8 @@ UINT WINAPI MsiDatabaseApplyTransformW( MSIHANDLE hdb, const WCHAR *transform, i
|
|||
|
||||
if (error_cond) FIXME( "ignoring error conditions\n" );
|
||||
|
||||
db = msihandle2msiinfo( hdb, MSIHANDLETYPE_DATABASE );
|
||||
if (!db)
|
||||
{
|
||||
MSIHANDLE remote;
|
||||
|
||||
if (!(remote = msi_get_remote(hdb)))
|
||||
return ERROR_INVALID_HANDLE;
|
||||
|
||||
WARN("MsiDatabaseApplyTransform not allowed during a custom action!\n");
|
||||
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
if (!(db = msihandle2msiinfo(hdb, MSIHANDLETYPE_DATABASE)))
|
||||
return ERROR_INVALID_HANDLE;
|
||||
|
||||
r = MSI_DatabaseApplyTransformW( db, transform, error_cond );
|
||||
msiobj_release( &db->hdr );
|
||||
|
|
|
@ -1128,7 +1128,7 @@ static void test_invalid_functions(MSIHANDLE hinst)
|
|||
todo_wine ok(hinst, r == ERROR_INVALID_HANDLE, "got %u\n", r);
|
||||
|
||||
r = MsiDatabaseApplyTransformA(db, "bogus.mst", 0);
|
||||
todo_wine ok(hinst, r == ERROR_INVALID_HANDLE, "got %u\n", r);
|
||||
ok(hinst, r == ERROR_INVALID_HANDLE, "got %u\n", r);
|
||||
|
||||
r = MsiCreateTransformSummaryInfoA(db, db, "bogus.mst", 0, 0);
|
||||
todo_wine ok(hinst, r == ERROR_INSTALL_PACKAGE_OPEN_FAILED, "got %u\n", r);
|
||||
|
|
Loading…
Reference in a new issue