mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 20:55:16 +00:00
only touch the type on success or STATUS_BUFFER_OVERFLOW
svn path=/trunk/; revision=36302
This commit is contained in:
parent
425fdf353f
commit
a0d50db01e
|
@ -3861,7 +3861,7 @@ RegQueryValueExW (HKEY hKey,
|
|||
}
|
||||
}
|
||||
|
||||
if (lpType != NULL)
|
||||
if ((lpType != NULL) && (NT_SUCCESS(Status) || (Status == STATUS_BUFFER_OVERFLOW)))
|
||||
{
|
||||
*lpType = ValueInfo->Type;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue