aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-12-16 13:09:46 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-12-16 13:09:46 +0000
commitd1600b38c0a37e629a7f8d36625119d6e5453614 (patch)
treee0ed7fa22bc1cda2face2e378f8f5dffb47723b9
parent47c756dd7a5e5720656deefde376e5beb57cc2a4 (diff)
downloadnewlib-d1600b38c0a37e629a7f8d36625119d6e5453614.zip
newlib-d1600b38c0a37e629a7f8d36625119d6e5453614.tar.gz
newlib-d1600b38c0a37e629a7f8d36625119d6e5453614.tar.bz2
* registry.cc (cygnus_class): Remove.
(reg_key::build_reg): Don't set class when creating key.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/registry.cc3
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index e715d6a..d5fb16b 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-16 Corinna Vinschen <corinna@vinschen.de>
+
+ * registry.cc (cygnus_class): Remove.
+ (reg_key::build_reg): Don't set class when creating key.
+
2009-12-15 Corinna Vinschen <corinna@vinschen.de>
* net.cc (cygwin_setsockopt): Only skip calling setsockopt(SO_REUSEADDR)
diff --git a/winsup/cygwin/registry.cc b/winsup/cygwin/registry.cc
index 1fdf20a..5232188 100644
--- a/winsup/cygwin/registry.cc
+++ b/winsup/cygwin/registry.cc
@@ -18,7 +18,6 @@ details. */
#include "cygheap.h"
#include "tls_pbuf.h"
#include <wchar.h>
-static const char cygnus_class[] = "cygnus";
reg_key::reg_key (HKEY top, REGSAM access, ...): _disposition (0)
{
@@ -84,7 +83,7 @@ reg_key::build_reg (HKEY top, REGSAM access, va_list av)
int res = RegCreateKeyExA (r,
name,
0,
- (char *) cygnus_class,
+ NULL,
REG_OPTION_NON_VOLATILE,
access,
&sec_none_nih,