--- trunk/reactos/lib/user32/windows/clipboard.c 2005-10-15 21:41:48 UTC (rev 18487)
+++ trunk/reactos/lib/user32/windows/clipboard.c 2005-10-16 01:22:18 UTC (rev 18488)
@@ -105,10 +105,11 @@
SetLastError(ERROR_OUTOFMEMORY);
return 0;
}
- RtlInitUnicodeString(&FormatName, lpBuffer);
+
FormatName.Length = 0;
FormatName.MaximumLength = cchMaxCount * sizeof(WCHAR);
FormatName.Buffer = lpBuffer;
+
Length = NtUserGetClipboardFormatName(format, &FormatName, cchMaxCount);
DPRINT("GetClipboardFormatNameA(%x): %S\n", format, lpBuffer);
HEAP_strcpyWtoA(lpszFormatName, lpBuffer, Length);