From 61350d2a486eb18a833d389abfe8b4b50ccec13f Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 25 May 2008 08:30:33 +0000 Subject: [PATCH] Fixed a bug in GetClipboardFormatNameA svn path=/trunk/; revision=33688 --- reactos/dll/win32/user32/windows/clipboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/user32/windows/clipboard.c b/reactos/dll/win32/user32/windows/clipboard.c index 42515c1c3ae..6fb5ba34d88 100644 --- a/reactos/dll/win32/user32/windows/clipboard.c +++ b/reactos/dll/win32/user32/windows/clipboard.c @@ -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);