Module: wine Branch: master Commit: 96fafe1661318a83c61e757b39c27f9fc2873203 URL: http://source.winehq.org/git/wine.git/?a=commit;h=96fafe1661318a83c61e757b39...
Author: Rob Shearman rob@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));