]> sourceware.org Git - newlib-cygwin.git/commitdiff
* fhandler_registry.cc (registry_listing): Correct typo.
authorChristopher Faylor <me@cgf.cx>
Thu, 15 Jul 2004 02:07:14 +0000 (02:07 +0000)
committerChristopher Faylor <me@cgf.cx>
Thu, 15 Jul 2004 02:07:14 +0000 (02:07 +0000)
(fhandler_registry::fill_filebuf): Set size of newly expanded buffer prior to
calling RegQueryValueEx.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_registry.cc

index 6b05d3b2bcb5a5c0c81c45a18be66995d80ae85e..839f3a5e390768377343d9db389ff6a596461f11 100644 (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
index 95ee3ffd71bc22bc12a1815306561a8ad64da0b5..c158821763c528b21e051633a9291c16d2c9f240 100644 (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)
This page took 0.036197 seconds and 5 git commands to generate.