ole32: Fix the character count passed to GetClipboardFormatNameW in WriteFmtUserTypeStg.

This commit is contained in:
Rob Shearman 2008-02-14 14:38:53 +00:00 committed by Alexandre Julliard
parent cedf6308aa
commit 96fafe1661
1 changed files with 1 additions and 1 deletions

View File

@ -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));