[Bug 39683] New: CreateRestrictedToken() uses wrong enum value for default impersonation level

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Nov 27 03:25:19 CST 2015


https://bugs.winehq.org/show_bug.cgi?id=39683

            Bug ID: 39683
           Summary: CreateRestrictedToken() uses wrong enum value for
                    default impersonation level
           Product: Wine
           Version: 1.8-rc1
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: advapi32
          Assignee: wine-bugs at winehq.org
          Reporter: bunglehead at gmail.com
      Distribution: ---

Since commit
http://source.winehq.org/git/wine.git/commit/bbb29e9d4c1b55f24c60a6449903a6ffb149ccc1,
duplicated token level is initialized like that:

---
+    SECURITY_IMPERSONATION_LEVEL level = TokenImpersonationLevel;
---

TokenImpersonationLevel is a member of TOKEN_INFORMATION_CLASS, not
SECURITY_IMPERSONATION_LEVEL. I'm not sure what's a right level would be in
this case.

P.S. clang in -Werror mode is not impressed by this, that's how it was spotted.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list