diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-04-19 08:45:36 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-04-19 08:45:36 +0000 |
commit | e5c91e1627d0b9f62f6311724c82e27fda827ec5 (patch) | |
tree | 376d9ec9167294c161826c71f7e1c46a49d8f01c | |
parent | f5ab5b84de2ee3808795a8c29fbf27eb15a1a0ef (diff) | |
download | newlib-e5c91e1627d0b9f62f6311724c82e27fda827ec5.zip newlib-e5c91e1627d0b9f62f6311724c82e27fda827ec5.tar.gz newlib-e5c91e1627d0b9f62f6311724c82e27fda827ec5.tar.bz2 |
* fhandler_registry.cc (fhandler_registry::fstat): Use RegQueryInfoKeyW.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_registry.cc | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 6136b13..8c6ffbe 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 2011-04-19 Corinna Vinschen <corinna@vinschen.de> + * fhandler_registry.cc (fhandler_registry::fstat): Use RegQueryInfoKeyW. + +2011-04-19 Corinna Vinschen <corinna@vinschen.de> + * fhandler_proc.cc (read_value): Remove definition. (print): Simplify. (format_proc_cpuinfo): Drop useless call to GetSystemInfo. Rearrange diff --git a/winsup/cygwin/fhandler_registry.cc b/winsup/cygwin/fhandler_registry.cc index b9c9a8e..f2e80ce 100644 --- a/winsup/cygwin/fhandler_registry.cc +++ b/winsup/cygwin/fhandler_registry.cc @@ -1,7 +1,7 @@ /* fhandler_registry.cc: fhandler for /proc/registry virtual filesystem Copyright 2002, 2003, 2003, 2004, 2005, 2006, 2007, 2008, 2009, - 2010 Red Hat, Inc. + 2010, 2011 Red Hat, Inc. This file is part of Cygwin. @@ -456,9 +456,8 @@ fhandler_registry::fstat (struct __stat64 *buf) FILETIME ftLastWriteTime; DWORD subkey_count; if (ERROR_SUCCESS == - RegQueryInfoKey (hKey, NULL, NULL, NULL, &subkey_count, NULL, - NULL, NULL, NULL, NULL, NULL, - &ftLastWriteTime)) + RegQueryInfoKeyW (hKey, NULL, NULL, NULL, &subkey_count, NULL, + NULL, NULL, NULL, NULL, NULL, &ftLastWriteTime)) { to_timestruc_t (&ftLastWriteTime, &buf->st_mtim); buf->st_ctim = buf->st_birthtim = buf->st_mtim; |