Module: wine Branch: master Commit: 2b2f04c514a78fe2ad5ab3b29c2870c47e8160ae URL: http://source.winehq.org/git/wine.git/?a=commit;h=2b2f04c514a78fe2ad5ab3b29c...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Tue Dec 9 17:44:50 2008 +0100
advapi32/tests: Fix a test failure on NT4.
---
dlls/advapi32/tests/security.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c index 2e1349b..d521e90 100644 --- a/dlls/advapi32/tests/security.c +++ b/dlls/advapi32/tests/security.c @@ -2291,7 +2291,8 @@ static void test_GetNamedSecurityInfoA(void)
ret = GetSecurityDescriptorControl(pSecDesc, &control, &revision); ok(ret, "GetSecurityDescriptorControl failed with error %d\n", GetLastError()); - ok((control & (SE_SELF_RELATIVE|SE_DACL_PRESENT)) == (SE_SELF_RELATIVE|SE_DACL_PRESENT), + ok((control & (SE_SELF_RELATIVE|SE_DACL_PRESENT)) == (SE_SELF_RELATIVE|SE_DACL_PRESENT) || + broken((control & (SE_SELF_RELATIVE|SE_DACL_PRESENT)) == SE_DACL_PRESENT), /* NT4 */ "control (0x%x) doesn't have (SE_SELF_RELATIVE|SE_DACL_PRESENT) flags set\n", control); ok(revision == SECURITY_DESCRIPTOR_REVISION1, "revision was %d instead of 1\n", revision); ret = GetSecurityDescriptorOwner(pSecDesc, &owner, &owner_defaulted); @@ -2300,6 +2301,7 @@ static void test_GetNamedSecurityInfoA(void) ret = GetSecurityDescriptorGroup(pSecDesc, &group, &group_defaulted); ok(ret, "GetSecurityDescriptorGroup failed with error %d\n", GetLastError()); ok(group != NULL, "group should not be NULL\n"); + LocalFree(pSecDesc); }
static void test_ConvertStringSecurityDescriptor(void)