Author: gert
Date: 2008-02-10 05:02:26 -0500 (Sun, 10 Feb 2008)
New Revision: 95362
Modified:
branches/mono-1-9/mcs/class/corlib/Microsoft.Win32/ChangeLog
branches/mono-1-9/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs
Log:
* UnixRegistryApi.cs: In OpenSubKey, respect value of writable argument
when creating well-known subkey. Fixes bug #357883.
Modified: branches/mono-1-9/mcs/class/corlib/Microsoft.Win32/ChangeLog
===================================================================
--- branches/mono-1-9/mcs/class/corlib/Microsoft.Win32/ChangeLog
2008-02-10 09:38:41 UTC (rev 95361)
+++ branches/mono-1-9/mcs/class/corlib/Microsoft.Win32/ChangeLog
2008-02-10 10:02:26 UTC (rev 95362)
@@ -1,3 +1,8 @@
+2008-02-10 Gert Driesen <[EMAIL PROTECTED]>
+
+ * UnixRegistryApi.cs: In OpenSubKey, respect value of writable argument
+ when creating well-known subkey. Fixes bug #357883.
+
2008-01-15 Zoltan Varga <[EMAIL PROTECTED]>
* RegistryKey.cs: Fix some argument names to be consistent with MS.
Modified: branches/mono-1-9/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs
===================================================================
--- branches/mono-1-9/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs
2008-02-10 09:38:41 UTC (rev 95361)
+++ branches/mono-1-9/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs
2008-02-10 10:02:26 UTC (rev 95362)
@@ -592,7 +592,7 @@
RegistryKey result = self.Probe (rkey, ToUnix
(keyname), writable);
if (result == null && IsWellKnownKey (rkey.Name,
keyname)) {
// create the subkey even if its parent was
opened read-only
- result = CreateSubKey (rkey, keyname, false);
+ result = CreateSubKey (rkey, keyname, writable);
}
return result;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches