Erich Hoover : advapi32: Fix intermittent 64-bit test failure.
Alexandre Julliard
julliard at winehq.org
Thu Jan 24 12:59:50 CST 2013
Module: wine
Branch: master
Commit: cb45236032404c69597f3a87d6ea586fbbd74a80
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cb45236032404c69597f3a87d6ea586fbbd74a80
Author: Erich Hoover <ehoover at mines.edu>
Date: Fri Jan 18 11:00:58 2013 -0700
advapi32: Fix intermittent 64-bit test failure.
---
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 0e0730f..e4adab1 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -3119,7 +3119,6 @@ static void test_GetNamedSecurityInfoA(void)
bret = InitializeAcl(pDacl, sizeof(dacl), ACL_REVISION);
ok(bret, "Failed to initialize ACL.\n");
bret = pAddAccessAllowedAceEx(pDacl, ACL_REVISION, 0, GENERIC_ALL, user_sid);
- HeapFree(GetProcessHeap(), 0, user);
ok(bret, "Failed to add Current User to ACL.\n");
bret = pAddAccessAllowedAceEx(pDacl, ACL_REVISION, 0, GENERIC_ALL, admin_sid);
ok(bret, "Failed to add Administrator Group to ACL.\n");
@@ -3134,6 +3133,7 @@ static void test_GetNamedSecurityInfoA(void)
if (error != ERROR_SUCCESS && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED))
{
win_skip("SetNamedSecurityInfoA is not implemented\n");
+ HeapFree(GetProcessHeap(), 0, user);
CloseHandle(hTemp);
return;
}
@@ -3144,6 +3144,7 @@ static void test_GetNamedSecurityInfoA(void)
if (error != ERROR_SUCCESS && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED))
{
win_skip("GetNamedSecurityInfoA is not implemented\n");
+ HeapFree(GetProcessHeap(), 0, user);
CloseHandle(hTemp);
return;
}
@@ -3175,6 +3176,7 @@ static void test_GetNamedSecurityInfoA(void)
"Administators Group ACE has unexpected mask (0x%x != 0x1f01ff)\n", ace->Mask);
}
LocalFree(pSD);
+ HeapFree(GetProcessHeap(), 0, user);
CloseHandle(hTemp);
}
More information about the wine-cvs
mailing list