Commit 60502143 authored by Dave Hawkes's avatar Dave Hawkes Committed by Alexandre Julliard

Fixed winproc memory leak.

parent ad079d6c
......@@ -448,7 +448,15 @@ BOOL WINPROC_SetProc( HWINDOWPROC *pFirst, WNDPROC16 func,
if (((*ppPrev)->type == type) &&
(func == WINPROC_THUNKPROC(*ppPrev)))
{
bRecycle = TRUE;
if((*ppPrev)->user == user)
{
bRecycle = TRUE;
}
else
{
WINPROC_FreeProc( *ppPrev, user );
*ppPrev = NULL;
}
break;
}
}
......
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