mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:02:59 +00:00
Fixed a bug.
svn path=/trunk/; revision=2440
This commit is contained in:
parent
aee376797f
commit
d6278aba2a
1 changed files with 1 additions and 1 deletions
|
@ -453,7 +453,7 @@ RegQueryValue(HKEY Key,
|
||||||
*Type = Value->Type;
|
*Type = Value->Type;
|
||||||
if ((Data != NULL) && (DataSize != NULL))
|
if ((Data != NULL) && (DataSize != NULL))
|
||||||
{
|
{
|
||||||
if (*DataSize <= sizeof(PUCHAR))
|
if (Value->DataSize <= sizeof(PUCHAR))
|
||||||
{
|
{
|
||||||
Size = min(Value->DataSize, *DataSize);
|
Size = min(Value->DataSize, *DataSize);
|
||||||
memcpy(Data, &Value->Data, Size);
|
memcpy(Data, &Value->Data, Size);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue