[CMLIB][NTOS]: Use correct parameter type for the 4th parameter of CmpGetValueData().

[CMLIB]: Fix debug.h inclusion.
[NTOS]: Use RtlCopyUnicodeString() to initialize the contents of FullName.

svn path=/trunk/; revision=75143
This commit is contained in:
Hermès Bélusca-Maïto 2017-06-19 20:14:09 +00:00
parent 38274203e7
commit a449c39c25
5 changed files with 5 additions and 5 deletions

View file

@ -309,7 +309,7 @@ CmpOpenHiveFiles(IN PCUNICODE_STRING BaseName,
/* Build the full name */
FullName.Buffer = NameBuffer;
FullName.MaximumLength = Length;
RtlAppendUnicodeStringToString(&FullName, BaseName);
RtlCopyUnicodeString(&FullName, BaseName);
}
else
{

View file

@ -112,7 +112,7 @@ CmpGetSymbolicLink(IN PHHIVE Hive,
if (!CmpGetValueData(Hive,
LinkValue,
&ValueLength,
(PVOID)&LinkName,
(PVOID*)&LinkName,
&LinkNameAllocated,
&CellToRelease))
{

View file

@ -10,7 +10,7 @@
#include "cmlib.h"
#define NDEBUG
#include "debug.h"
#include <debug.h>
/* FUNCTIONS *****************************************************************/

View file

@ -10,7 +10,7 @@
#include "cmlib.h"
#define NDEBUG
#include "debug.h"
#include <debug.h>
/* FUNCTIONS *****************************************************************/

View file

@ -180,7 +180,7 @@ CmpValueToData(IN PHHIVE Hive,
if (!CmpGetValueData(Hive,
Value,
Length,
(PVOID)&Buffer,
(PVOID*)&Buffer,
&BufferAllocated,
&CellToRelease))
{