Fixed a bug in GetClipboardFormatNameA

svn path=/trunk/; revision=33688
This commit is contained in:
Pierre Schweitzer 2008-05-25 08:30:33 +00:00
parent cdc5cb8cf5
commit 61350d2a48

View file

@ -135,9 +135,9 @@ GetClipboardFormatNameA(UINT format, LPSTR lpszFormatName, int cchMaxCount)
if (!WideCharToMultiByte(CP_ACP, 0, lpBuffer, Length, lpszFormatName, cchMaxCount, NULL, NULL))
{
/* clear result string */
lpszFormatName[0] = '\0';
Length = 0;
}
lpszFormatName[Length] = '\0';
}
RtlFreeHeap(RtlGetProcessHeap(), 0, lpBuffer);