Author: sir_richard
Date: Sun Jun 27 19:55:36 2010
New Revision: 47864
URL: http://svn.reactos.org/svn/reactos?rev=47864&view=rev
Log:
[NTOS]: Warn only once about MmLockPageableImageSection being unimplemented.
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/drvmgmt.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/drvmgmt.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/drvmgmt.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/drvmgmt.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/drvmgmt.c [iso-8859-1] Sun Jun 27 19:55:36 2010
@@ -60,7 +60,7 @@
//
// We should just find the section and call MmLockPageableSectionByHandle
//
- UNIMPLEMENTED;
+ static BOOLEAN Warn; if (!Warn++) UNIMPLEMENTED;
return AddressWithinSection;
}
Author: tkreuzer
Date: Sun Jun 27 15:20:34 2010
New Revision: 47862
URL: http://svn.reactos.org/svn/reactos?rev=47862&view=rev
Log:
The Win32ClientInfo TEB field can be bigger than the CLIENTINFO structure.
Modified:
trunk/reactos/include/reactos/win32k/ntuser.h
Modified: trunk/reactos/include/reactos/win32k/ntuser.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/win32k/ntu…
==============================================================================
--- trunk/reactos/include/reactos/win32k/ntuser.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/win32k/ntuser.h [iso-8859-1] Sun Jun 27 15:20:34 2010
@@ -216,8 +216,8 @@
PPROCESSINFO ppi;
} CLIENTINFO, *PCLIENTINFO;
-/* Make sure it fits exactly into the TEB */
-C_ASSERT(sizeof(CLIENTINFO) == FIELD_OFFSET(TEB, glDispatchTable) - FIELD_OFFSET(TEB, Win32ClientInfo));
+/* Make sure it fits into the TEB */
+C_ASSERT(sizeof(CLIENTINFO) <= sizeof(((PTEB)0)->Win32ClientInfo));
#define GetWin32ClientInfo() ((PCLIENTINFO)(NtCurrentTeb()->Win32ClientInfo))
Author: mjmartin
Date: Sun Jun 27 12:36:23 2010
New Revision: 47859
URL: http://svn.reactos.org/svn/reactos?rev=47859&view=rev
Log:
[win32k]
- Add Check for spwndNext being null before accessing any of the members. Fixes bugcheck when using cubicexplorer.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] Sun Jun 27 12:36:23 2010
@@ -961,7 +961,7 @@
* itself.
*/
if ((WinPos->hwnd == WinPos->hwndInsertAfter) ||
- (WinPos->hwnd == InsAfterWnd->spwndNext->hSelf))
+ ((InsAfterWnd->spwndNext) && (WinPos->hwnd == InsAfterWnd->spwndNext->hSelf)))
{
WinPos->flags |= SWP_NOZORDER;
}
@@ -1006,10 +1006,10 @@
if (!Window->Wnd) return FALSE;
/* FIXME: Get current active window from active queue. */
-
/*
* Only allow CSRSS to mess with the desktop window
*/
+
if ( Window->hSelf == IntGetDesktopWindow() &&
Window->pti->pEThread->ThreadsProcess != PsGetCurrentProcess())
{