https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b596a2cc31c6597ae5063…
commit b596a2cc31c6597ae50633d48c0c9ce37cf37e70
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Fri Mar 6 20:02:03 2020 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Fri Mar 6 20:02:03 2020 +0100
[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: