Fix usage of ProbeForReadUnicodeString

svn path=/trunk/; revision=38538
This commit is contained in:
Thomas Bluemel 2009-01-04 01:50:37 +00:00
parent c78f1d3a6d
commit 856d0c4f7b
2 changed files with 2 additions and 4 deletions

View file

@ -44,11 +44,10 @@ NtCreateKey(OUT PHANDLE KeyHandle,
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 */

View file

@ -374,8 +374,7 @@ ObpCaptureObjectName(IN OUT PUNICODE_STRING CapturedName,
if (AccessMode != KernelMode)
{
/* First Probe the String */
ProbeForReadUnicodeString(ObjectName);
LocalName = *ObjectName;
LocalName = ProbeForReadUnicodeString(ObjectName);
ProbeForRead(LocalName.Buffer, LocalName.Length, sizeof(WCHAR));
}
else