mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Fixed a bug in GetClipboardFormatNameA
svn path=/trunk/; revision=33688
This commit is contained in:
parent
cdc5cb8cf5
commit
61350d2a48
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue