RegQueryValueExA: Free ValueName Unicode string when it is no loger in use.

svn path=/trunk/; revision=11781
This commit is contained in:
Eric Kohl 2004-11-22 16:11:25 +00:00
parent adb7404b3d
commit e4b1bafb21

View file

@ -1,4 +1,4 @@
/* $Id: reg.c,v 1.62 2004/11/11 11:21:30 ekohl Exp $
/* $Id: reg.c,v 1.63 2004/11/22 16:11:25 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -2475,6 +2475,7 @@ RegQueryValueExA (HKEY hKey,
(LPBYTE)ValueData.Buffer,
NULL == lpcbData ? NULL : &Length);
DPRINT("ErrorCode %lu\n", ErrorCode);
RtlFreeUnicodeString(&ValueName);
if (ErrorCode == ERROR_SUCCESS ||
ErrorCode == ERROR_MORE_DATA)