[Bug 39683] New: CreateRestrictedToken() uses wrong enum value for default impersonation level
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(a)winehq.org Reporter: bunglehead(a)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. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=39683 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hans(a)meelstraat.net -- 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.
https://bugs.winehq.org/show_bug.cgi?id=39683 --- Comment #1 from Hans Leidekker <hans(a)meelstraat.net> --- We can just set it to zero because the impersonation level is ignored by DuplicateTokenEx when the token type is TokenPrimary. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=39683 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |f611fcafd8610155b5fe1d97a77 | |9ed5bdc94bb96 Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Nikolay Sivov <bunglehead(a)gmail.com> --- Fixed with f611fcafd8610155b5fe1d97a779ed5bdc94bb96. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=39683 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #3 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 1.8-rc3. -- 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.
participants (1)
-
wine-bugs@winehq.org