Author: cwittich
Date: Sun Sep 4 08:57:52 2016
New Revision: 72569
URL:
http://svn.reactos.org/svn/reactos?rev=72569&view=rev
Log:
[USER32] Fix use-after-free. wine patch by Thomas Faller
Modified:
trunk/reactos/win32ss/user/user32/misc/ddeclient.c
Modified: trunk/reactos/win32ss/user/user32/misc/ddeclient.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/misc/d…
==============================================================================
--- trunk/reactos/win32ss/user/user32/misc/ddeclient.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/misc/ddeclient.c [iso-8859-1] Sun Sep 4 08:57:52
2016
@@ -769,7 +769,7 @@
GlobalDeleteAtom(uiHi);
if (ack) *ack = uiLo;
- GlobalFree(pXAct->hMem);
+ pXAct->hMem = GlobalFree(pXAct->hMem);
pXAct->hDdeData = (HDDEDATA)TRUE;
return TRUE;