Author: jgardou
Date: Fri Mar 4 03:42:38 2011
New Revision: 50966
URL: http://svn.reactos.org/svn/reactos?rev=50966&view=rev
Log:
[RTL]
- Fix compilation when NDEBUG is not defined
Modified:
trunk/reactos/lib/rtl/critical.c
Modified: trunk/reactos/lib/rtl/critical.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/critical.c?rev=509…
==============================================================================
--- trunk/reactos/lib/rtl/critical.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/critical.c [iso-8859-1] Fri Mar 4 03:42:38 2011
@@ -604,7 +604,7 @@
RtlLeaveCriticalSection(PRTL_CRITICAL_SECTION CriticalSection)
{
#ifndef NDEBUG
- HANDLE Thread = (HANDLE)NtCurrentTeb()->Cid.UniqueThread;
+ HANDLE Thread = (HANDLE)NtCurrentTeb()->ClientId.UniqueThread;
/* In win this case isn't checked. However it's a valid check so it should only
be performed in debug builds! */
Author: jimtabor
Date: Thu Mar 3 17:32:20 2011
New Revision: 50962
URL: http://svn.reactos.org/svn/reactos?rev=50962&view=rev
Log:
[Win32k]
- Missed the clearing of the clip region for the window at the end of of its life. The mouse is looking for the window, doing so, scanning through all of them, even the ones that are at deaths door.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/window.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Thu Mar 3 17:32:20 2011
@@ -472,6 +472,7 @@
if(Window->hrgnClip)
{
GreDeleteObject(Window->hrgnClip);
+ Window->hrgnClip = NULL;
}
// ASSERT(Window != NULL);