- Fix freeing of an unallocated memory bug (RtlInitUnicodeString() never allocates anything, it just initializes necessary fields, and noone asks us to free the string the function gets as a parameter).

svn path=/trunk/; revision=26261
This commit is contained in:
Aleksey Bragin 2007-04-04 16:04:41 +00:00
parent ed06eba9e3
commit 260dc41818

View file

@ -269,8 +269,7 @@ RegisterClipboardFormatW(LPCWSTR lpszFormat)
RtlInitUnicodeString(&usFormat, lpszFormat);
ret = NtUserRegisterClipboardFormat(&usFormat);
RtlFreeUnicodeString(&usFormat);
return ret;
}