Roman Pišl : shell32: Avoid crash on WM_WINDOWPOSCHANGING in BrsFolderDlgProc.

Alexandre Julliard julliard at winehq.org
Tue Jun 2 08:11:17 CDT 2020


Module: wine
Branch: stable
Commit: afba948ba9be66b89eb0f253799f1d3be5baf0f8
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=afba948ba9be66b89eb0f253799f1d3be5baf0f8

Author: Roman Pišl <rpisl at seznam.cz>
Date:   Sun Feb 16 21:10:31 2020 +0100

shell32: Avoid crash on WM_WINDOWPOSCHANGING in BrsFolderDlgProc.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48510
Signed-off-by: Roman Pišl <rpisl at seznam.cz>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit a10267172046fc16aaa1cd1237701f6867b92fc0)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/shell32/brsfolder.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/shell32/brsfolder.c b/dlls/shell32/brsfolder.c
index d71ec62099..188524d6a9 100644
--- a/dlls/shell32/brsfolder.c
+++ b/dlls/shell32/brsfolder.c
@@ -1109,6 +1109,8 @@ static INT_PTR CALLBACK BrsFolderDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
         return BrsFolder_OnCreate( hWnd, (browse_info*) lParam );
 
     info = GetPropW( hWnd, szBrowseFolderInfo );
+    if (!info)
+        return FALSE;
 
     switch (msg)
     {




More information about the wine-cvs mailing list