mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[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.
This commit is contained in:
parent
18ae48ce51
commit
b596a2cc31
1 changed files with 1 additions and 2 deletions
|
@ -5009,9 +5009,8 @@ LRESULT WINAPI EditWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
|
||||||
result = EDIT_WM_NCDestroy(es);
|
result = EDIT_WM_NCDestroy(es);
|
||||||
#ifdef __REACTOS__
|
#ifdef __REACTOS__
|
||||||
NtUserSetWindowFNID(hwnd, FNID_DESTROY);
|
NtUserSetWindowFNID(hwnd, FNID_DESTROY);
|
||||||
#else
|
|
||||||
es = NULL;
|
|
||||||
#endif
|
#endif
|
||||||
|
es = NULL;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_GETDLGCODE:
|
case WM_GETDLGCODE:
|
||||||
|
|
Loading…
Reference in a new issue