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@winehq.org Reporter: bunglehead@gmail.com Distribution: ---
Since commit http://source.winehq.org/git/wine.git/commit/bbb29e9d4c1b55f24c60a6449903a6f..., 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.