mirror of
https://github.com/reactos/reactos.git
synced 2025-01-12 09:07:54 +00:00
Fix crash in NtUserSetClipboardData with CF_TEXT format. (Bug 3536)
svn path=/trunk/; revision=34763
This commit is contained in:
parent
eaa1dbeb84
commit
eb40678d1d
1 changed files with 3 additions and 1 deletions
|
@ -922,7 +922,9 @@ NtUserSetClipboardData(UINT uFormat, HANDLE hMem, DWORD size)
|
|||
{
|
||||
//TODO : sinthesize CF_UNICODETEXT & CF_OEMTEXT
|
||||
// CF_TEXT -> CF_UNICODETEXT
|
||||
RtlAnsiStringToUnicodeString(&unicodeString, hCBData, TRUE);
|
||||
ansiString.Buffer = hCBData;
|
||||
ansiString.Length = size;
|
||||
RtlAnsiStringToUnicodeString(&unicodeString, &ansiString, TRUE);
|
||||
intAddFormatedData(CF_UNICODETEXT, unicodeString.Buffer, unicodeString.Length * sizeof(WCHAR));
|
||||
// CF_TEXT -> CF_OEMTEXT
|
||||
RtlUnicodeStringToOemString(&oemString, &unicodeString, TRUE);
|
||||
|
|
Loading…
Reference in a new issue