Author: pschweitzer
Date: Sat Apr 5 21:42:48 2014
New Revision: 62634
URL:
http://svn.reactos.org/svn/reactos?rev=62634&view=rev
Log:
[WIN32SS]
Don't dereference an object that wasn't referenced
CID #1102086
Modified:
trunk/reactos/win32ss/user/ntuser/clipboard.c
Modified: trunk/reactos/win32ss/user/ntuser/clipboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/clipbo…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/clipboard.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/clipboard.c [iso-8859-1] Sat Apr 5 21:42:48 2014
@@ -304,10 +304,10 @@
pMemObj->cbData = sizeof(LCID);
*((LCID*)pMemObj->Data) = NtCurrentTeb()->CurrentLocale;
IntAddFormatedData(pWinStaObj, CF_LOCALE, hMem, TRUE, TRUE);
- }
-
- /* Release the extra reference (UserCreateObject added 2 references) */
- UserDereferenceObject(pMemObj);
+
+ /* Release the extra reference (UserCreateObject added 2 references) */
+ UserDereferenceObject(pMemObj);
+ }
}
/* Add CF_TEXT. Note: it is synthesized in user32.dll */