Rob Shearman : ole32: Fix the character count passed to GetClipboardFormatNameW in WriteFmtUserTypeStg .
Alexandre Julliard
julliard at winehq.org
Fri Feb 15 05:35:59 CST 2008
Module: wine
Branch: master
Commit: 96fafe1661318a83c61e757b39c27f9fc2873203
URL: http://source.winehq.org/git/wine.git/?a=commit;h=96fafe1661318a83c61e757b39c27f9fc2873203
Author: Rob Shearman <rob at codeweavers.com>
Date: Thu Feb 14 14:38:53 2008 +0000
ole32: Fix the character count passed to GetClipboardFormatNameW in WriteFmtUserTypeStg.
---
dlls/ole32/storage32.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c
index a83c729..ac0cbbf 100644
--- a/dlls/ole32/storage32.c
+++ b/dlls/ole32/storage32.c
@@ -7116,7 +7116,7 @@ HRESULT WINAPI WriteFmtUserTypeStg(
TRACE("(%p,%x,%s)\n",pstg,cf,debugstr_w(lpszUserType));
/* get the clipboard format name */
- n = GetClipboardFormatNameW( cf, szwClipName, sizeof(szwClipName) );
+ n = GetClipboardFormatNameW( cf, szwClipName, sizeof(szwClipName)/sizeof(szwClipName[0]) );
szwClipName[n]=0;
TRACE("Clipboard name is %s\n", debugstr_w(szwClipName));
More information about the wine-cvs
mailing list