Author: weiden
Date: Sat Jan 3 19:50:37 2009
New Revision: 38538
URL:
http://svn.reactos.org/svn/reactos?rev=38538&view=rev
Log:
Fix usage of ProbeForReadUnicodeString
Modified:
trunk/reactos/ntoskrnl/config/ntapi.c
trunk/reactos/ntoskrnl/ob/oblife.c
Modified: trunk/reactos/ntoskrnl/config/ntapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/ntapi.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/config/ntapi.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/ntapi.c [iso-8859-1] Sat Jan 3 19:50:37 2009
@@ -44,11 +44,10 @@
if (Class)
{
/* Probe it */
- ProbeForReadUnicodeString(Class);
+ ParseContext.Class = ProbeForReadUnicodeString(Class);
ProbeForRead(ParseContext.Class.Buffer,
ParseContext.Class.Length,
sizeof(WCHAR));
- ParseContext.Class = *Class;
}
/* Probe the key handle */
Modified: trunk/reactos/ntoskrnl/ob/oblife.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/oblife.c?rev=3…
==============================================================================
--- trunk/reactos/ntoskrnl/ob/oblife.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ob/oblife.c [iso-8859-1] Sat Jan 3 19:50:37 2009
@@ -374,8 +374,7 @@
if (AccessMode != KernelMode)
{
/* First Probe the String */
- ProbeForReadUnicodeString(ObjectName);
- LocalName = *ObjectName;
+ LocalName = ProbeForReadUnicodeString(ObjectName);
ProbeForRead(LocalName.Buffer, LocalName.Length, sizeof(WCHAR));
}
else