Author: gonzalo
Date: 2005-04-23 07:15:17 -0400 (Sat, 23 Apr 2005)
New Revision: 43475
Modified:
trunk/mcs/class/System.Web/System.Web/ChangeLog
trunk/mcs/class/System.Web/System.Web/HttpBrowserCapabilities.cs
Log:
2005-04-23 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* HttpBrowserCapabilities.cs: fix Win32 property.
Modified: trunk/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web/ChangeLog 2005-04-23 09:54:16 UTC
(rev 43474)
+++ trunk/mcs/class/System.Web/System.Web/ChangeLog 2005-04-23 11:15:17 UTC
(rev 43475)
@@ -1,3 +1,7 @@
+2005-04-23 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * HttpBrowserCapabilities.cs: fix Win32 property.
+
2005-04-21 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* HttpResponse.cs: only add the charset when explicitly set or for
Modified: trunk/mcs/class/System.Web/System.Web/HttpBrowserCapabilities.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/HttpBrowserCapabilities.cs
2005-04-23 09:54:16 UTC (rev 43474)
+++ trunk/mcs/class/System.Web/System.Web/HttpBrowserCapabilities.cs
2005-04-23 11:15:17 UTC (rev 43475)
@@ -60,7 +60,7 @@
const int HaveVersion = 21;
//const int HaveW3CDomVersion = 22;
const int HaveWin16 = 23;
- //const int HaveWin32 = 24;
+ const int HaveWin32 = 24;
int flags;
bool activeXControls;
@@ -86,6 +86,7 @@
string version;
//Version w3CDomVersion;
bool win16;
+ bool win32;
Version [] clrVersions;
internal string useragent;
@@ -340,7 +341,12 @@
public bool Win32 {
get {
- return !Win16;
+ if (!Get (HaveWin32)) {
+ Set (HaveWin32);
+ win32 = ReadBoolean ("win32", false);
+ }
+
+ return win32;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches