projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d688d91
)
[User32]
author
James Tabor
<james.tabor@reactos.org>
Thu, 7 Jan 2010 19:05:57 +0000
(19:05 +0000)
committer
James Tabor
<james.tabor@reactos.org>
Thu, 7 Jan 2010 19:05:57 +0000
(19:05 +0000)
- 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
reactos/dll/win32/user32/misc/dde.c
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/user32/misc/dde.c
b/reactos/dll/win32/user32/misc/dde.c
index
c9cfcef
..
30498d1
100644
(file)
--- a/
reactos/dll/win32/user32/misc/dde.c
+++ b/
reactos/dll/win32/user32/misc/dde.c
@@
-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;
}