Author: pschweitzer
Date: Sun May 25 03:30:33 2008
New Revision: 33688
URL:
http://svn.reactos.org/svn/reactos?rev=33688&view=rev
Log:
Fixed a bug in GetClipboardFormatNameA
Modified:
trunk/reactos/dll/win32/user32/windows/clipboard.c
Modified: trunk/reactos/dll/win32/user32/windows/clipboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/c…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/clipboard.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/clipboard.c [iso-8859-1] Sun May 25 03:30:33
2008
@@ -135,9 +135,9 @@
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);