[PATCH] Don't set last error to 0 so we can check if it has changed
Paul Vriens
Paul.Vriens.Wine at gmail.com
Sat Feb 16 09:32:12 CST 2008
---
dlls/advapi32/tests/security.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
index 1cb3130..ea52e16 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -890,10 +890,11 @@ static void test_AccessCheck(void)
ret = pRtlAdjustPrivilege(SE_SECURITY_PRIVILEGE, TRUE, TRUE, &Enabled);
if (!ret)
{
- SetLastError(0);
+ SetLastError(0xdeadbeef);
PrivSet->PrivilegeCount = 16;
ret = AccessCheck(SecurityDescriptor, Token, ACCESS_SYSTEM_SECURITY, &Mapping,
PrivSet, &PrivSetLen, &Access, &AccessStatus);
+ todo_wine
ok(ret && AccessStatus && GetLastError() == 0,
"AccessCheck should have succeeded, error %d\n",
GetLastError());
--
1.5.3.8
--------------040602050600060301070101--
More information about the wine-patches
mailing list