[WINESYNC] msi: Make MsiDoAction() RPC-compatible.

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 c49abc8ce006441163c4a0b25d42ad1e9650d9da by Zebediah Figura <z.figura12@gmail.com>
This commit is contained in:
winesync
2022-03-12 15:11:57 +01:00
committed by Mark Jansen
parent 6f8e5d88d9
commit c65c209a0c
6 changed files with 28 additions and 23 deletions

View File

@@ -426,6 +426,26 @@ static void test_db(MSIHANDLE hinst)
ok(hinst, !r, "got %u\n", r);
}
static void test_doaction(MSIHANDLE hinst)
{
UINT r;
r = MsiDoActionA(hinst, "nested51");
ok(hinst, !r, "got %u\n", r);
check_prop(hinst, "nested", "1");
r = MsiDoActionA(hinst, "nested1");
ok(hinst, !r, "got %u\n", r);
check_prop(hinst, "nested", "2");
}
UINT WINAPI nested(MSIHANDLE hinst)
{
MsiSetPropertyA(hinst, "nested", "2");
return ERROR_SUCCESS;
}
/* Main test. Anything that doesn't depend on a specific install configuration
* or have undesired side effects should go here. */
UINT WINAPI main_test(MSIHANDLE hinst)
@@ -451,6 +471,7 @@ UINT WINAPI main_test(MSIHANDLE hinst)
test_props(hinst);
test_db(hinst);
test_doaction(hinst);
return ERROR_SUCCESS;
}

View File

@@ -2,3 +2,4 @@
@ stdcall test_retval(long)
@ stdcall da_immediate(long)
@ stdcall da_deferred(long)
@ stdcall nested(long)

View File

@@ -703,6 +703,8 @@ static const CHAR ca1_custom_action_dat[] = "Action\tType\tSource\tTarget\n"
"s72\ti2\tS64\tS0\n"
"CustomAction\tAction\n"
"embednull\t51\tembednullprop\ta[~]b\n"
"nested51\t51\tnested\t1\n"
"nested1\t1\tcustom.dll\tnested\n"
"maintest\t1\tcustom.dll\tmain_test\n"
"testretval\t1\tcustom.dll\ttest_retval\n";