* fhandler_registry.cc (registry_listing): Correct typo.

(fhandler_registry::fill_filebuf): Set size of newly expanded buffer prior to
calling RegQueryValueEx.
This commit is contained in:
Christopher Faylor 2004-07-15 02:07:14 +00:00
parent 8e47f4464b
commit 839677149f
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2004-07-14 Dave Korn <dk@artimi.com>
* fhandler_registry.cc (registry_listing): Correct typo.
(fhandler_registry::fill_filebuf): Set size of newly expanded buffer
prior to calling RegQueryValueEx.
2004-07-14 Corinna Vinschen <corinna@vinschen.de>
* fhandler_raw.cc (fhandler_dev_raw::raw_write): Remove buffered

View File

@ -48,7 +48,7 @@ static const char *registry_listing[] =
"HKEY_LOCAL_MACHINE",
"HKEY_USERS",
"HKEY_DYN_DATA", // 95/98/Me
"HKEY_PERFOMANCE_DATA", // NT/2000/XP
"HKEY_PERFORMANCE_DATA", // NT/2000/XP
NULL
};
@ -575,6 +575,7 @@ fhandler_registry::fill_filebuf ()
{
bufalloc += 1000;
filebuf = (char *) realloc (filebuf, bufalloc);
size = bufalloc;
error = RegQueryValueEx (handle, value_name, NULL, &type,
(BYTE *) filebuf, &size);
if (error != ERROR_SUCCESS && error != ERROR_MORE_DATA)