diff options
author | Christopher Faylor <me@cgf.cx> | 2006-01-03 17:44:26 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-01-03 17:44:26 +0000 |
commit | adcff8d159698ea0ff59505ada74fc7243738e68 (patch) | |
tree | 8efd16e71fdef6a230dcb316dbca01a4127fad0d /winsup/cygwin/registry.cc | |
parent | 825d0b93850125861ebefa6925ada44fe8f93f92 (diff) | |
download | cygnal-adcff8d159698ea0ff59505ada74fc7243738e68.tar.gz cygnal-adcff8d159698ea0ff59505ada74fc7243738e68.tar.bz2 cygnal-adcff8d159698ea0ff59505ada74fc7243738e68.zip |
* dir.cc (readdir_worker): Minor code cleanup.
* fhandler_console.cc (beep): Use a more Windows-generic wav file if the beep
is missing. Use a more foolproof way to find out whether we should be
recreating the missing key.
* registry.h (reg_key::_disposition): New field.
(reg_key::created): New function.
* registry.cc (reg_key::reg_key): Set _disposition to zero by default.
(reg_key::build_key): Fill in _disposition field.
Diffstat (limited to 'winsup/cygwin/registry.cc')
-rw-r--r-- | winsup/cygwin/registry.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/registry.cc b/winsup/cygwin/registry.cc index b443b92f4..723a71098 100644 --- a/winsup/cygwin/registry.cc +++ b/winsup/cygwin/registry.cc @@ -1,7 +1,7 @@ /* registry.cc: registry interface Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, - 2005 Red Hat, Inc. + 2005, 2006 Red Hat, Inc. This file is part of Cygwin. @@ -21,7 +21,7 @@ details. */ #include "cygheap.h" static const char cygnus_class[] = "cygnus"; -reg_key::reg_key (HKEY top, REGSAM access, ...) +reg_key::reg_key (HKEY top, REGSAM access, ...): _disposition (0) { va_list av; va_start (av, access); @@ -32,7 +32,7 @@ reg_key::reg_key (HKEY top, REGSAM access, ...) /* Opens a key under the appropriate Cygwin key. Do not use HKCU per MS KB 199190 */ -reg_key::reg_key (bool isHKLM, REGSAM access, ...) +reg_key::reg_key (bool isHKLM, REGSAM access, ...): _disposition (0) { va_list av; HKEY top; @@ -91,7 +91,7 @@ reg_key::build_reg (HKEY top, REGSAM access, va_list av) access, &sec_none_nih, &key, - NULL); + &_disposition); if (r != top) RegCloseKey (r); r = key; |