Module: wine Branch: master Commit: 24d2f694cb0fec5069dac413d27bd118965aac9d URL: http://source.winehq.org/git/wine.git/?a=commit;h=24d2f694cb0fec5069dac413d2...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Dec 3 16:15:13 2010 +0100
msi/tests: Fix a test failure on win2k.
---
dlls/msi/tests/msi.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/tests/msi.c b/dlls/msi/tests/msi.c index a03f8f4..e08f6bb 100644 --- a/dlls/msi/tests/msi.c +++ b/dlls/msi/tests/msi.c @@ -958,7 +958,8 @@ static void test_MsiQueryFeatureState(void) state = MsiQueryFeatureStateA("{6700E8CF-95AB-4D9C-BC2C-15840DEA7A5D}", "feature"); error = GetLastError(); ok(state == INSTALLSTATE_UNKNOWN, "Expected INSTALLSTATE_UNKNOWN, got %d\n", state); - ok(error == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %u\n", error); + ok(error == ERROR_SUCCESS || broken(error == ERROR_ALREADY_EXISTS) /* win2k */, + "expected ERROR_SUCCESS, got %u\n", error);
/* same length as guid, but random */ SetLastError(0xdeadbeef);