mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Fix usage of ProbeForReadUnicodeString
svn path=/trunk/; revision=38538
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user