[PATCH] advapi32: Use proper enum member to initialize SECURITY_IMPERSONATION_LEVEL variable (Clang)

Nikolay Sivov nsivov at codeweavers.com
Tue Dec 1 10:27:06 CST 2015


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---

This is a no-op change in practice, because TokenImpersonation tokens
we always try to get token's own level, and for other token types this
value is ignored. The patch is about fixing initialization with
value meaningless for variable data type.

 dlls/advapi32/security.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c
index 09dfdec..c64981e 100644
--- a/dlls/advapi32/security.c
+++ b/dlls/advapi32/security.c
@@ -871,7 +871,7 @@ BOOL WINAPI CreateRestrictedToken(
     PHANDLE newToken)
 {
     TOKEN_TYPE type;
-    SECURITY_IMPERSONATION_LEVEL level = TokenImpersonationLevel;
+    SECURITY_IMPERSONATION_LEVEL level = SecurityAnonymous;
     DWORD size;
 
     FIXME("(%p, 0x%x, %u, %p, %u, %p, %u, %p, %p): stub\n",
-- 
2.6.2




More information about the wine-patches mailing list