From b596a2cc31c6597ae50633d48c0c9ce37cf37e70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Fri, 6 Mar 2020 20:02:03 +0100 Subject: [PATCH] [USER32] Fix crash in Edit control. CORE-16727 The #ifdef prevents setting the variable, es, to NULL, which lead to an illegal access. This didn't match dll/comctl32/edit.c . Patch by 'I_Kill_Bugs' contributor. --- win32ss/user/user32/controls/edit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/win32ss/user/user32/controls/edit.c b/win32ss/user/user32/controls/edit.c index 790c8c32bbb..1eccfbf1684 100644 --- a/win32ss/user/user32/controls/edit.c +++ b/win32ss/user/user32/controls/edit.c @@ -5009,9 +5009,8 @@ LRESULT WINAPI EditWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP result = EDIT_WM_NCDestroy(es); #ifdef __REACTOS__ NtUserSetWindowFNID(hwnd, FNID_DESTROY); -#else - es = NULL; #endif + es = NULL; break; case WM_GETDLGCODE: