From 8151e674bafcd9a4a54caa1cba6685737354cc6b Mon Sep 17 00:00:00 2001 From: Pierre Humblet Date: Fri, 3 Dec 2004 02:00:37 +0000 Subject: 2004-12-03 Pierre Humblet * registry.h (reg_key::reg_key): Change arguments. * shared_info.h (class mount_info): Remove had_to_create_mount_areas. * registry.cc (reg_key::reg_key): Change constructors to always handle HKLM and to avoid relying on HKCU. Do not set mount_table->had_to_create_mount_areas. * path.cc (mount_info::conv_to_win32_path): Improve update of sys_mount_table_counter. (mount_info::read_mounts): Use new reg_key constructor. (mount_info::add_reg_mount): Ditto. (mount_info::del_reg_mount): Ditto. (mount_info::read_cygdrive_info_from_registry): Ditto. (mount_info::write_cygdrive_info_to_registry): Ditto. Update cygwin_shared->sys_mount_table_counter after registry update. (mount_info::get_cygdrive_info): Ditto. * shared.cc (shared_info::heap_chunk_size): Use new reg_key constructor. * environ.cc (regopt): Ditto. --- winsup/cygwin/shared_info.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'winsup/cygwin/shared_info.h') diff --git a/winsup/cygwin/shared_info.h b/winsup/cygwin/shared_info.h index f2006363f..7a9b0e096 100644 --- a/winsup/cygwin/shared_info.h +++ b/winsup/cygwin/shared_info.h @@ -70,10 +70,6 @@ class mount_info int native_sorted[MAX_MOUNTS]; public: - /* Increment when setting up a reg_key if mounts area had to be - created so we know when we need to import old mount tables. */ - int had_to_create_mount_areas; - void init (); int add_item (const char *dev, const char *path, unsigned flags, int reg_p); int del_item (const char *path, unsigned flags, int reg_p); -- cgit v1.2.3