Fixed a bug.
authorEric Kohl <eric.kohl@reactos.org>
Fri, 28 Dec 2001 21:17:37 +0000 (21:17 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Fri, 28 Dec 2001 21:17:37 +0000 (21:17 +0000)
svn path=/trunk/; revision=2440

freeldr/freeldr/reactos/registry.c

index 9434ba7..8b78eac 100644 (file)
@@ -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);