mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 05:37:44 +00:00
- 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:
parent
ed06eba9e3
commit
260dc41818
|
@ -269,7 +269,6 @@ RegisterClipboardFormatW(LPCWSTR lpszFormat)
|
||||||
|
|
||||||
RtlInitUnicodeString(&usFormat, lpszFormat);
|
RtlInitUnicodeString(&usFormat, lpszFormat);
|
||||||
ret = NtUserRegisterClipboardFormat(&usFormat);
|
ret = NtUserRegisterClipboardFormat(&usFormat);
|
||||||
RtlFreeUnicodeString(&usFormat);
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue