Commit dd4804c4 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

winhlp32: Restore the original window proc for the richedit control before…

winhlp32: Restore the original window proc for the richedit control before freeing the winhelp window memory.
parent b960b967
......@@ -541,6 +541,7 @@ static void WINHELP_DeleteWindow(WINHELP_WINDOW* win)
{
WINHELP_WINDOW** w;
BOOL bExit;
HWND hTextWnd;
for (w = &Globals.win_list; *w; w = &(*w)->next)
{
......@@ -562,6 +563,10 @@ static void WINHELP_DeleteWindow(WINHELP_WINDOW* win)
if (win == Globals.active_popup)
Globals.active_popup = NULL;
hTextWnd = GetDlgItem(win->hMainWnd, CTL_ID_TEXT);
SetWindowLongPtr(hTextWnd, GWLP_WNDPROC,
(LONG_PTR)win->origRicheditWndProc);
WINHELP_DeleteButtons(win);
if (win->page) WINHELP_DeletePageLinks(win->page);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment