mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 02:43:48 +00:00
[User32]
- Patch by James Hawkins : Don't try to free a handle with a value of 1, which is the dde handle value for asynchronous operations. - Will sync to wine after a review of new WOW implementation. svn path=/trunk/; revision=44989
This commit is contained in:
parent
d688d91275
commit
337d120ece
|
@ -1456,6 +1456,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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue