mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 08:30:21 +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;
|
||||
if ((Data != NULL) && (DataSize != NULL))
|
||||
{
|
||||
if (*DataSize <= sizeof(PUCHAR))
|
||||
if (Value->DataSize <= sizeof(PUCHAR))
|
||||
{
|
||||
Size = min(Value->DataSize, *DataSize);
|
||||
memcpy(Data, &Value->Data, Size);
|
||||
|
|
Loading…
Reference in a new issue