mirror of
https://github.com/reactos/reactos.git
synced 2025-07-10 03:07:55 +00:00
Don't return ERROR_MORE_DATA in the case of lpData == NULL.
svn path=/trunk/; revision=7283
This commit is contained in:
parent
ff637e689a
commit
25dba4902b
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: reg.c,v 1.39 2003/12/28 08:47:28 arty Exp $
|
/* $Id: reg.c,v 1.40 2003/12/28 09:28:39 arty Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -2149,7 +2149,7 @@ RegQueryValueExW (HKEY hKey,
|
||||||
{
|
{
|
||||||
/* Return ERROR_SUCCESS and the buffer space needed for a successful call */
|
/* Return ERROR_SUCCESS and the buffer space needed for a successful call */
|
||||||
MaxCopy = 0;
|
MaxCopy = 0;
|
||||||
ErrorCode = ERROR_MORE_DATA;
|
ErrorCode = lpData ? ERROR_MORE_DATA : ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
else if (!NT_SUCCESS(Status))
|
else if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue