From 289047c7351e6fb3fa15e23824fcb65238b4854a Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Mon, 4 Jan 2010 17:47:02 -0800 Subject: [PATCH] user32: Don't try to free a handle with a value of 1, which is the dde handle value for asynchronous operations. --- dlls/user32/dde_misc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/user32/dde_misc.c b/dlls/user32/dde_misc.c index ae1df40b308..ac4657e4118 100644 --- a/dlls/user32/dde_misc.c +++ b/dlls/user32/dde_misc.c @@ -1468,6 +1468,11 @@ BOOL WINAPI DdeUnaccessData(HDDEDATA hData) BOOL WINAPI DdeFreeDataHandle(HDDEDATA hData) { TRACE("(%p)\n", hData); + + /* 1 is the handle value returned by an asynchronous operation. */ + if (hData == (HDDEDATA)1) + return TRUE; + return GlobalFree(hData) == 0; }