diff --git a/README.md b/README.md index fcd0486b..d0b172d8 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,10 @@ Wine. All those differences are also documented on the Included bug fixes and improvements ----------------------------------- -**Bug fixes and features included in the next upcoming release [6]:** +**Bug fixes and features included in the next upcoming release [7]:** * Add stub for D3DXFrameFind ([Wine Bug #38334](https://bugs.winehq.org/show_bug.cgi?id=38334)) +* Add stub for advapi32.ImpersonateAnonymousToken * Add stub for d3d11.D3D11CreateDeviceAndSwapChain ([Wine Bug #33153](https://bugs.winehq.org/show_bug.cgi?id=33153)) * Fix check for texture levels in wined3d_device_update_texture ([Wine Bug #38048](https://bugs.winehq.org/show_bug.cgi?id=38048)) * Fix regression caused by blacklisting supported OpenGL extensions ([Wine Bug #38480](https://bugs.winehq.org/show_bug.cgi?id=38480)) diff --git a/debian/changelog b/debian/changelog index 7ab9087a..a9dba186 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,5 @@ wine-staging (1.7.42) UNRELEASED; urgency=low + * Added patch with stub for advapi32.ImpersonateAnonymousToken (fixes Wine Staging Bug #254). * Added patch to implement FileFsFullSizeInformation information class. * Added patch to update timezone information in wine.inf. * Added patch to fix check for texture levels in wined3d_device_update_texture. diff --git a/patches/advapi32-ImpersonateAnonymousToken/0001-advapi32-Add-stub-for-ImpersonateAnonymousToken.patch b/patches/advapi32-ImpersonateAnonymousToken/0001-advapi32-Add-stub-for-ImpersonateAnonymousToken.patch new file mode 100644 index 00000000..1a43d55f --- /dev/null +++ b/patches/advapi32-ImpersonateAnonymousToken/0001-advapi32-Add-stub-for-ImpersonateAnonymousToken.patch @@ -0,0 +1,47 @@ +From 77f0cb1855bc3886516214aee76799da10458871 Mon Sep 17 00:00:00 2001 +From: Sebastian Lackner +Date: Thu, 30 Apr 2015 01:37:44 +0200 +Subject: advapi32: Add stub for ImpersonateAnonymousToken. + +--- + dlls/advapi32/advapi32.spec | 2 +- + dlls/advapi32/security.c | 10 ++++++++++ + 2 files changed, 11 insertions(+), 1 deletion(-) + +diff --git a/dlls/advapi32/advapi32.spec b/dlls/advapi32/advapi32.spec +index e7b7cf7..9fdd266 100644 +--- a/dlls/advapi32/advapi32.spec ++++ b/dlls/advapi32/advapi32.spec +@@ -375,7 +375,7 @@ + @ stub I_ScSetServiceBitsA + # @ stub I_ScSetServiceBitsW + # @ stub IdentifyCodeAuthzLevelW +-# @ stub ImpersonateAnonymousToken ++@ stdcall ImpersonateAnonymousToken(long) + @ stdcall ImpersonateLoggedOnUser(long) + @ stdcall ImpersonateNamedPipeClient(long) + @ stdcall ImpersonateSelf(long) +diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c +index 2362dd5..5bd835c 100644 +--- a/dlls/advapi32/security.c ++++ b/dlls/advapi32/security.c +@@ -2504,6 +2504,16 @@ BOOL WINAPI ImpersonateLoggedOnUser(HANDLE hToken) + } + + /****************************************************************************** ++ * ImpersonateAnonymousToken [ADVAPI32.@] ++ */ ++BOOL WINAPI ImpersonateAnonymousToken(HANDLE hThread) ++{ ++ FIXME("(%p)\n", hThread); ++ SetLastError(ERROR_CALL_NOT_IMPLEMENTED); ++ return FALSE; ++} ++ ++/****************************************************************************** + * AccessCheck [ADVAPI32.@] + */ + BOOL WINAPI +-- +2.3.5 + diff --git a/patches/advapi32-ImpersonateAnonymousToken/definition b/patches/advapi32-ImpersonateAnonymousToken/definition new file mode 100644 index 00000000..9f08508a --- /dev/null +++ b/patches/advapi32-ImpersonateAnonymousToken/definition @@ -0,0 +1 @@ +Fixes: Add stub for advapi32.ImpersonateAnonymousToken diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index dde4f48b..2cf747f5 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -66,6 +66,7 @@ patch_enable_all () enable_Exagear="$1" enable_Pipelight="$1" enable_Staging="$1" + enable_advapi32_ImpersonateAnonymousToken="$1" enable_advapi32_LsaLookupSids="$1" enable_browseui_Progress_Dialog="$1" enable_category_stable="$1" @@ -274,6 +275,9 @@ patch_enable () Staging) enable_Staging="$2" ;; + advapi32-ImpersonateAnonymousToken) + enable_advapi32_ImpersonateAnonymousToken="$2" + ;; advapi32-LsaLookupSids) enable_advapi32_LsaLookupSids="$2" ;; @@ -1582,6 +1586,18 @@ if test "$enable_Staging" -eq 1; then ) >> "$patchlist" fi +# Patchset advapi32-ImpersonateAnonymousToken +# | +# | Modified files: +# | * dlls/advapi32/advapi32.spec, dlls/advapi32/security.c +# | +if test "$enable_advapi32_ImpersonateAnonymousToken" -eq 1; then + patch_apply advapi32-ImpersonateAnonymousToken/0001-advapi32-Add-stub-for-ImpersonateAnonymousToken.patch + ( + echo '+ { "Sebastian Lackner", "advapi32: Add stub for ImpersonateAnonymousToken.", 1 },'; + ) >> "$patchlist" +fi + # Patchset server-Misc_ACL # | # | This patchset fixes the following Wine bugs: @@ -2192,6 +2208,18 @@ if test "$enable_dxgi_GetDesc" -eq 1; then ) >> "$patchlist" fi +# Patchset makedep-PARENTSPEC +# | +# | Modified files: +# | * tools/makedep.c +# | +if test "$enable_makedep_PARENTSPEC" -eq 1; then + patch_apply makedep-PARENTSPEC/0001-makedep-Add-support-for-PARENTSPEC-Makefile-variable.patch + ( + echo '+ { "Sebastian Lackner", "makedep: Add support for PARENTSPEC Makefile variable.", 1 },'; + ) >> "$patchlist" +fi + # Patchset wined3d-Level_Count # | # | This patchset fixes the following Wine bugs: @@ -2227,18 +2255,6 @@ if test "$enable_ntdll_DllRedirects" -eq 1; then ) >> "$patchlist" fi -# Patchset makedep-PARENTSPEC -# | -# | Modified files: -# | * tools/makedep.c -# | -if test "$enable_makedep_PARENTSPEC" -eq 1; then - patch_apply makedep-PARENTSPEC/0001-makedep-Add-support-for-PARENTSPEC-Makefile-variable.patch - ( - echo '+ { "Sebastian Lackner", "makedep: Add support for PARENTSPEC Makefile variable.", 1 },'; - ) >> "$patchlist" -fi - # Patchset wined3d-CSMT_Helper # | # | Modified files: