mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
browseui-Progress_Dialog: Make sure that a valid resource id is passed in IProgressDialog::SetAnimation.
This commit is contained in:
parent
a9622970cd
commit
5d4b0f6a7b
@ -1,14 +1,14 @@
|
||||
From c56b09b0d41bead3b82c1473cace54ff6e175286 Mon Sep 17 00:00:00 2001
|
||||
From fe4f06bfdb1a53e0be15aca8f1f8f897f7fef632 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
||||
Date: Fri, 27 Feb 2015 17:46:11 +0100
|
||||
Subject: browseui: Implement IProgressDialog::SetAnimation.
|
||||
|
||||
---
|
||||
dlls/browseui/progressdlg.c | 13 ++++++++++++-
|
||||
1 file changed, 12 insertions(+), 1 deletion(-)
|
||||
dlls/browseui/progressdlg.c | 16 +++++++++++++++-
|
||||
1 file changed, 15 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/browseui/progressdlg.c b/dlls/browseui/progressdlg.c
|
||||
index 598197b..6691ba5 100644
|
||||
index 598197b..a14fa17 100644
|
||||
--- a/dlls/browseui/progressdlg.c
|
||||
+++ b/dlls/browseui/progressdlg.c
|
||||
@@ -175,6 +175,7 @@ static INT_PTR CALLBACK dialog_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l
|
||||
@ -30,7 +30,7 @@ index 598197b..6691ba5 100644
|
||||
update_dialog(This, 0xffffffff);
|
||||
This->dwUpdate = 0;
|
||||
This->isCancelled = FALSE;
|
||||
@@ -396,7 +401,13 @@ static HRESULT WINAPI ProgressDialog_SetTitle(IProgressDialog *iface, LPCWSTR pw
|
||||
@@ -396,7 +401,16 @@ static HRESULT WINAPI ProgressDialog_SetTitle(IProgressDialog *iface, LPCWSTR pw
|
||||
|
||||
static HRESULT WINAPI ProgressDialog_SetAnimation(IProgressDialog *iface, HINSTANCE hInstance, UINT uiResourceId)
|
||||
{
|
||||
@ -39,6 +39,9 @@ index 598197b..6691ba5 100644
|
||||
+
|
||||
+ TRACE("(%p, %p, %d)\n", iface, hInstance, uiResourceId);
|
||||
+
|
||||
+ if (uiResourceId & ~0xFFFF)
|
||||
+ return S_OK;
|
||||
+
|
||||
+ if (!SendDlgItemMessageW(This->hwnd, IDC_ANIMATION, ACM_OPENW, (WPARAM)hInstance, uiResourceId))
|
||||
+ WARN("Failed to load animation\n");
|
||||
+
|
||||
|
Loading…
x
Reference in New Issue
Block a user