mirror of
https://github.com/reactos/reactos.git
synced 2025-07-06 11:01:21 +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);
|
RtlInitUnicodeString(&usFormat, lpszFormat);
|
||||||
ret = NtUserRegisterClipboardFormat(&usFormat);
|
ret = NtUserRegisterClipboardFormat(&usFormat);
|
||||||
RtlFreeUnicodeString(&usFormat);
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue