[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:
Hermès Bélusca-Maïto 2020-03-06 20:02:03 +01:00
parent 18ae48ce51
commit b596a2cc31
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -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: