Marcus Meissner : kernel32: Initialize variable to a known bad value.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Aug 16 05:38:39 CDT 2007


Module: wine
Branch: master
Commit: f2ccdecd4b203a45d0fe0099c2930dc2ba601c25
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f2ccdecd4b203a45d0fe0099c2930dc2ba601c25

Author: Marcus Meissner <meissner at suse.de>
Date:   Wed Aug 15 17:08:50 2007 +0200

kernel32: Initialize variable to a known bad value.

---

 dlls/kernel32/tests/pipe.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/tests/pipe.c b/dlls/kernel32/tests/pipe.c
index fa158ee..18cc233 100644
--- a/dlls/kernel32/tests/pipe.c
+++ b/dlls/kernel32/tests/pipe.c
@@ -970,10 +970,11 @@ static void test_ImpersonateNamedPipeClient(HANDLE hClientToken, DWORD security_
 
     (*test_func)(0, hToken);
 
+    ImpersonationLevel = 0xdeadbeef; /* to avoid false positives */
     ret = GetTokenInformation(hToken, TokenImpersonationLevel, &ImpersonationLevel, sizeof(ImpersonationLevel), &size);
     todo_wine {
     ok(ret, "GetTokenInformation(TokenImpersonationLevel) failed with error %d\n", GetLastError());
-    ok(ImpersonationLevel == SecurityImpersonation, "ImpersonationLevel should have been SecurityImpersonation instead of %d\n", ImpersonationLevel);
+    ok(ImpersonationLevel == SecurityImpersonation, "ImpersonationLevel should have been SecurityImpersonation(%d) instead of %d\n", SecurityImpersonation, ImpersonationLevel);
     }
 
     CloseHandle(hToken);




More information about the wine-cvs mailing list