mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 05:20:54 +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
1 changed files with 1 additions and 2 deletions
|
@ -269,8 +269,7 @@ RegisterClipboardFormatW(LPCWSTR lpszFormat)
|
|||
|
||||
RtlInitUnicodeString(&usFormat, lpszFormat);
|
||||
ret = NtUserRegisterClipboardFormat(&usFormat);
|
||||
RtlFreeUnicodeString(&usFormat);
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue