[NTOSKRNL]

Remove broken definition of SharedUserdata and use correct SharedUserData instead. Fixes a crash on real Hardware. Patch by Daniel Zimmermann (netzimme at googlemail dot com)

See issue #5650 for more details.

svn path=/trunk/; revision=50369
This commit is contained in:
Timo Kreuzer 2011-01-12 13:40:34 +00:00
parent d73991290d
commit 2aa0f3b839
2 changed files with 1 additions and 2 deletions

View file

@ -118,7 +118,6 @@ Author:
#define DISPATCH_LENGTH 106 #define DISPATCH_LENGTH 106
#endif #endif
#define SharedUserdata ((KUSER_SHARED_DATA *CONST)(USER_SHARED_DATA|KSEG0_BASE))
#else #else
// //

View file

@ -212,7 +212,7 @@ PspLookupKernelUserEntryPoints(VOID)
if (KeFeatureBits & KF_FAST_SYSCALL) if (KeFeatureBits & KF_FAST_SYSCALL)
{ {
/* Get user-mode sysenter stub */ /* Get user-mode sysenter stub */
SharedUserdata->SystemCall = (PsNtosImageBase >> (PAGE_SHIFT + 1)); SharedUserData->SystemCall = (PsNtosImageBase >> (PAGE_SHIFT + 1));
Status = PspLookupSystemDllEntryPoint("KiFastSystemCall", Status = PspLookupSystemDllEntryPoint("KiFastSystemCall",
(PVOID)&SharedUserData-> (PVOID)&SharedUserData->
SystemCall); SystemCall);