mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +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
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -2149,7 +2149,7 @@ RegQueryValueExW (HKEY hKey,
|
|||
{
|
||||
/* Return ERROR_SUCCESS and the buffer space needed for a successful call */
|
||||
MaxCopy = 0;
|
||||
ErrorCode = ERROR_MORE_DATA;
|
||||
ErrorCode = lpData ? ERROR_MORE_DATA : ERROR_SUCCESS;
|
||||
}
|
||||
else if (!NT_SUCCESS(Status))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue