mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 19:26:16 +00:00
Fixed a bug in GetClipboardFormatNameA
svn path=/trunk/; revision=33688
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user