mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
[WINESYNC] msi: Make MsiSetComponentState() 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 11702a31d2a31bfc5ac13e5d7995b2e71578f25f by Zebediah Figura <z.figura12@gmail.com>
This commit is contained in:
@@ -719,6 +719,25 @@ static void test_feature_states(MSIHANDLE hinst)
|
||||
ok(hinst, !r, "got %u\n", r);
|
||||
ok(hinst, state == INSTALLSTATE_UNKNOWN, "got state %d\n", state);
|
||||
ok(hinst, action == INSTALLSTATE_LOCAL, "got action %d\n", action);
|
||||
|
||||
r = MsiSetComponentStateA(hinst, NULL, INSTALLSTATE_ABSENT);
|
||||
ok(hinst, r == ERROR_UNKNOWN_COMPONENT, "got %u\n", r);
|
||||
|
||||
r = MsiSetComponentStateA(hinst, "One", INSTALLSTATE_SOURCE);
|
||||
ok(hinst, !r, "got %u\n", r);
|
||||
|
||||
r = MsiGetComponentStateA(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_SOURCE, "got action %d\n", action);
|
||||
|
||||
r = MsiSetComponentStateA(hinst, "One", INSTALLSTATE_LOCAL);
|
||||
ok(hinst, !r, "got %u\n", r);
|
||||
|
||||
r = MsiGetComponentStateA(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
|
||||
|
||||
Reference in New Issue
Block a user