Commit 289047c7 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

user32: Don't try to free a handle with a value of 1, which is the dde handle…

user32: Don't try to free a handle with a value of 1, which is the dde handle value for asynchronous operations.
parent f10d5608
...@@ -1468,6 +1468,11 @@ BOOL WINAPI DdeUnaccessData(HDDEDATA hData) ...@@ -1468,6 +1468,11 @@ BOOL WINAPI DdeUnaccessData(HDDEDATA hData)
BOOL WINAPI DdeFreeDataHandle(HDDEDATA hData) BOOL WINAPI DdeFreeDataHandle(HDDEDATA hData)
{ {
TRACE("(%p)\n", 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; return GlobalFree(hData) == 0;
} }
......
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