Author: fireball
Date: Wed Apr 4 20:04:41 2007
New Revision: 26261
URL:
http://svn.reactos.org/svn/reactos?rev=26261&view=rev
Log:
- 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).
Modified:
trunk/reactos/dll/win32/user32/windows/clipboard.c
Modified: trunk/reactos/dll/win32/user32/windows/clipboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/c…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/clipboard.c (original)
+++ trunk/reactos/dll/win32/user32/windows/clipboard.c Wed Apr 4 20:04:41 2007
@@ -269,8 +269,7 @@
RtlInitUnicodeString(&usFormat, lpszFormat);
ret = NtUserRegisterClipboardFormat(&usFormat);
- RtlFreeUnicodeString(&usFormat);
-
+
return ret;
}