shell32/autocomplete: Remove the property after replacing the callback instead of before.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2a8df60a8c
commit
644358bdf7
|
@ -367,8 +367,8 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
|
||||||
{
|
{
|
||||||
WNDPROC proc = This->wpOrigEditProc;
|
WNDPROC proc = This->wpOrigEditProc;
|
||||||
|
|
||||||
RemovePropW(hwnd, autocomplete_propertyW);
|
|
||||||
SetWindowLongPtrW(hwnd, GWLP_WNDPROC, (LONG_PTR)proc);
|
SetWindowLongPtrW(hwnd, GWLP_WNDPROC, (LONG_PTR)proc);
|
||||||
|
RemovePropW(hwnd, autocomplete_propertyW);
|
||||||
destroy_autocomplete_object(This);
|
destroy_autocomplete_object(This);
|
||||||
return CallWindowProcW(proc, hwnd, uMsg, wParam, lParam);
|
return CallWindowProcW(proc, hwnd, uMsg, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue