From 4e7a7d01ffd1bbbb07acfe08ebf74046ad1f9d9a Mon Sep 17 00:00:00 2001 From: Thomas Faller Date: Tue, 12 Jan 2016 22:06:30 +0100 Subject: [PATCH] dde: Fix use-after-free. Signed-off-by: Thomas Faller Signed-off-by: Alexandre Julliard --- dlls/user32/dde_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user32/dde_client.c b/dlls/user32/dde_client.c index 633331d2ad6..989131c66c2 100644 --- a/dlls/user32/dde_client.c +++ b/dlls/user32/dde_client.c @@ -778,7 +778,7 @@ static WDML_QUEUE_STATE WDML_HandlePokeReply(WDML_CONV* pConv, MSG* msg, WDML_XA GlobalDeleteAtom(uiHi); if (ack) *ack = uiLo; - GlobalFree(pXAct->hMem); + pXAct->hMem = GlobalFree(pXAct->hMem); pXAct->hDdeData = (HDDEDATA)TRUE; return TRUE;