mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Fix usage of ProbeForReadUnicodeString
svn path=/trunk/; revision=38538
This commit is contained in:
parent
c78f1d3a6d
commit
856d0c4f7b
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue