only touch the type on success or STATUS_BUFFER_OVERFLOW

svn path=/trunk/; revision=36302
This commit is contained in:
Christoph von Wittich 2008-09-18 12:54:45 +00:00
parent 425fdf353f
commit a0d50db01e

View file

@ -3861,7 +3861,7 @@ RegQueryValueExW (HKEY hKey,
}
}
if (lpType != NULL)
if ((lpType != NULL) && (NT_SUCCESS(Status) || (Status == STATUS_BUFFER_OVERFLOW)))
{
*lpType = ValueInfo->Type;
}