diff --git a/patches/dwmapi-DwmSetIcon/0001-dwmapi-Add-stubs-for-DwmSetIconicLivePreviewBitmap-a.patch b/patches/dwmapi-DwmSetIcon/0001-dwmapi-Add-stubs-for-DwmSetIconicLivePreviewBitmap-a.patch new file mode 100644 index 00000000..dd011371 --- /dev/null +++ b/patches/dwmapi-DwmSetIcon/0001-dwmapi-Add-stubs-for-DwmSetIconicLivePreviewBitmap-a.patch @@ -0,0 +1,53 @@ +From 7fed7fb3a06902a325d3c66465f252b6ee8b45b7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michael=20M=C3=BCller?= +Date: Tue, 11 Jul 2017 23:59:58 +0200 +Subject: dwmapi: Add stubs for DwmSetIconicLivePreviewBitmap and + DwmSetIconicThumbnail. + +--- + dlls/dwmapi/dwmapi.spec | 2 ++ + dlls/dwmapi/dwmapi_main.c | 18 ++++++++++++++++++ + 2 files changed, 20 insertions(+) + +diff --git a/dlls/dwmapi/dwmapi.spec b/dlls/dwmapi/dwmapi.spec +index 6adbcb947d5..6989fdbe1b7 100644 +--- a/dlls/dwmapi/dwmapi.spec ++++ b/dlls/dwmapi/dwmapi.spec +@@ -39,6 +39,8 @@ + @ stub DwmQueryThumbnailSourceSize + @ stdcall DwmRegisterThumbnail(long long ptr) + @ stub DwmSetDxFrameDuration ++@ stdcall DwmSetIconicLivePreviewBitmap(long long ptr long) ++@ stdcall DwmSetIconicThumbnail(long long long) + @ stdcall DwmSetPresentParameters(ptr ptr) + @ stdcall DwmSetWindowAttribute(long long ptr long) + @ stdcall DwmUnregisterThumbnail(long) +diff --git a/dlls/dwmapi/dwmapi_main.c b/dlls/dwmapi/dwmapi_main.c +index 8c3472a5294..0e6ba3bed1c 100644 +--- a/dlls/dwmapi/dwmapi_main.c ++++ b/dlls/dwmapi/dwmapi_main.c +@@ -268,3 +268,21 @@ HRESULT WINAPI DwmSetPresentParameters(HWND hwnd, DWM_PRESENT_PARAMETERS *params + FIXME("(%p %p) stub\n", hwnd, params); + return S_OK; + }; ++ ++/********************************************************************** ++ * DwmSetIconicLivePreviewBitmap (DWMAPI.@) ++ */ ++HRESULT WINAPI DwmSetIconicLivePreviewBitmap(HWND hwnd, HBITMAP hbmp, POINT *pos, DWORD flags) ++{ ++ FIXME("(%p %p %p %x) stub\n", hwnd, hbmp, pos, flags); ++ return S_OK; ++}; ++ ++/********************************************************************** ++ * DwmSetIconicThumbnail (DWMAPI.@) ++ */ ++HRESULT WINAPI DwmSetIconicThumbnail(HWND hwnd, HBITMAP hbmp, DWORD flags) ++{ ++ FIXME("(%p %p %x) stub\n", hwnd, hbmp, flags); ++ return S_OK; ++}; +-- +2.13.1 + diff --git a/patches/dwmapi-DwmSetIcon/definition b/patches/dwmapi-DwmSetIcon/definition new file mode 100644 index 00000000..632f2ac6 --- /dev/null +++ b/patches/dwmapi-DwmSetIcon/definition @@ -0,0 +1 @@ +Fixes: Implement stubs for DwmSetIconicLivePreviewBitmap and DwmSetIconicThumbnail diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index 8a28b774..354cf4ef 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -154,6 +154,7 @@ patch_enable_all () enable_dsound_EAX="$1" enable_dsound_Fast_Mixer="$1" enable_dsound_Revert_Cleanup="$1" + enable_dwmapi_DwmSetIcon="$1" enable_dxdiag_dontskip="$1" enable_dxdiagn_Display_Information="$1" enable_dxdiagn_Enumerate_DirectSound="$1" @@ -716,6 +717,9 @@ patch_enable () dsound-Revert_Cleanup) enable_dsound_Revert_Cleanup="$2" ;; + dwmapi-DwmSetIcon) + enable_dwmapi_DwmSetIcon="$2" + ;; dxdiag-dontskip) enable_dxdiag_dontskip="$2" ;; @@ -4279,6 +4283,18 @@ if test "$enable_dsound_EAX" -eq 1; then ) >> "$patchlist" fi +# Patchset dwmapi-DwmSetIcon +# | +# | Modified files: +# | * dlls/dwmapi/dwmapi.spec, dlls/dwmapi/dwmapi_main.c +# | +if test "$enable_dwmapi_DwmSetIcon" -eq 1; then + patch_apply dwmapi-DwmSetIcon/0001-dwmapi-Add-stubs-for-DwmSetIconicLivePreviewBitmap-a.patch + ( + printf '%s\n' '+ { "Michael Müller", "dwmapi: Add stubs for DwmSetIconicLivePreviewBitmap and DwmSetIconicThumbnail.", 1 },'; + ) >> "$patchlist" +fi + # Patchset dxdiag-dontskip # | # | Modified files: