[PATCH 2/7] regedit: Allow handling of return values from listview notification messages

Hugh McMaster hugh.mcmaster at outlook.com
Mon May 29 03:20:13 CDT 2017


Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
 programs/regedit/childwnd.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/programs/regedit/childwnd.c b/programs/regedit/childwnd.c
index 6538842..2f77f2f 100644
--- a/programs/regedit/childwnd.c
+++ b/programs/regedit/childwnd.c
@@ -472,8 +472,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
                 return 0; /* goto def; */
             }
         } else if ((int)wParam == LIST_WINDOW && g_pChildWnd != NULL) {
-            if (!SendMessageW(g_pChildWnd->hListWnd, WM_NOTIFY_REFLECT, wParam, lParam))
-                goto def;
+            return SendMessageW(g_pChildWnd->hListWnd, WM_NOTIFY_REFLECT, wParam, lParam);
         }
         break;
 
-- 
2.7.4




More information about the wine-patches mailing list