* fhandler_registry.cc (fhandler_registry::fstat): Use RegQueryInfoKeyW.
This commit is contained in:
parent
f5ab5b84de
commit
e5c91e1627
|
@ -1,3 +1,7 @@
|
|||
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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue