[PATCH 14/16] [Ole32]: clipboard
Eric Pouech
eric.pouech at wanadoo.fr
Sun Oct 22 14:48:49 CDT 2006
- fixed some wrong conditions in OleFlushClipboard
(spotted by valgrind)
A+
---
dlls/ole32/clipboard.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/ole32/clipboard.c b/dlls/ole32/clipboard.c
index 73627b3..89ecfd5 100644
--- a/dlls/ole32/clipboard.c
+++ b/dlls/ole32/clipboard.c
@@ -914,7 +914,8 @@ static HRESULT OLEClipbrd_RenderFormat(I
ILockBytes *ptrILockBytes = 0;
HGLOBAL hStorage = 0;
- GetClipboardFormatNameA(pFormatetc->cfFormat, szFmtName, MAX_CLIPFORMAT_NAME);
+ if (!GetClipboardFormatNameA(pFormatetc->cfFormat, szFmtName, MAX_CLIPFORMAT_NAME))
+ szFmtName[0] = '\0';
/* If embed source */
if (!strcmp(szFmtName, CF_EMBEDSOURCE))
More information about the wine-patches
mailing list