mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 19:26:16 +00:00
Fixed a bug.
svn path=/trunk/; revision=2440
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user