[PATCH] advapi32/tests: Fix a failure on 64bit NT 5.x
Detlef Riekenberg
wine.dev at web.de
Sun Nov 11 22:50:13 CST 2012
--
By by ... Detlef
---
dlls/advapi32/tests/security.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
index ba0750b..077dcf5 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -4294,7 +4294,7 @@ static void test_TokenIntegrityLevel(void)
res = GetTokenInformation(token, TokenIntegrityLevel, buffer, sizeof(buffer), &size);
/* not supported before Vista */
- if (!res && (GetLastError() == ERROR_INVALID_PARAMETER))
+ if (!res && ((GetLastError() == ERROR_INVALID_PARAMETER) || broken(GetLastError() == ERROR_INVALID_FUNCTION)))
{
win_skip("TokenIntegrityLevel not supported\n");
CloseHandle(token);
--
1.7.5.4
More information about the wine-patches
mailing list