RtlInitUnicodeString is only legal with nullterminated strings and also
the string in initialized manually below...
Modified: trunk/reactos/lib/user32/windows/clipboard.c
_____
Modified: trunk/reactos/lib/user32/windows/clipboard.c
--- 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);
Show replies by date