mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 17:31:23 +08:00
[WINESYNC] msi: Make MsiGetFeatureState() 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 9f428f592dc949d528c149692addf8e34f3f005b by Zebediah Figura <z.figura12@gmail.com>
This commit is contained in:
@@ -650,6 +650,29 @@ static void test_mode(MSIHANDLE hinst)
|
||||
ok(hinst, !r, "got %u\n", r);
|
||||
}
|
||||
|
||||
static void test_feature_states(MSIHANDLE hinst)
|
||||
{
|
||||
INSTALLSTATE state, action;
|
||||
UINT r;
|
||||
|
||||
r = MsiGetFeatureStateA(hinst, NULL, &state, &action);
|
||||
ok(hinst, r == ERROR_UNKNOWN_FEATURE, "got %u\n", r);
|
||||
|
||||
r = MsiGetFeatureStateA(hinst, "fake", &state, &action);
|
||||
ok(hinst, r == ERROR_UNKNOWN_FEATURE, "got %u\n", r);
|
||||
|
||||
r = MsiGetFeatureStateA(hinst, "One", NULL, &action);
|
||||
ok(hinst, r == RPC_X_NULL_REF_POINTER, "got %u\n", r);
|
||||
|
||||
r = MsiGetFeatureStateA(hinst, "One", &state, NULL);
|
||||
ok(hinst, r == RPC_X_NULL_REF_POINTER, "got %u\n", r);
|
||||
|
||||
r = MsiGetFeatureStateA(hinst, "One", &state, &action);
|
||||
ok(hinst, !r, "got %u\n", r);
|
||||
ok(hinst, state == INSTALLSTATE_ABSENT, "got state %d\n", state);
|
||||
ok(hinst, action == INSTALLSTATE_LOCAL, "got action %d\n", action);
|
||||
}
|
||||
|
||||
/* 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)
|
||||
@@ -678,6 +701,7 @@ UINT WINAPI main_test(MSIHANDLE hinst)
|
||||
test_doaction(hinst);
|
||||
test_targetpath(hinst);
|
||||
test_mode(hinst);
|
||||
test_feature_states(hinst);
|
||||
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user