Author: spouliot
Date: 2008-02-10 15:28:55 -0500 (Sun, 10 Feb 2008)
New Revision: 95404
Modified:
trunk/mcs/class/System.Security/Mono.Security.Cryptography/ChangeLog
trunk/mcs/class/System.Security/Mono.Security.Cryptography/NativeDapiProtection.cs
Log:
2008-02-10 Sebastien Pouliot <[EMAIL PROTECTED]>
* NativeDapiProtection.cs: Don't call GetLastWin32Error so late and
use the value we already have from a previous call. Found using
Gendarme.
Modified: trunk/mcs/class/System.Security/Mono.Security.Cryptography/ChangeLog
===================================================================
--- trunk/mcs/class/System.Security/Mono.Security.Cryptography/ChangeLog
2008-02-10 20:26:53 UTC (rev 95403)
+++ trunk/mcs/class/System.Security/Mono.Security.Cryptography/ChangeLog
2008-02-10 20:28:55 UTC (rev 95404)
@@ -1,3 +1,9 @@
+2008-02-10 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * NativeDapiProtection.cs: Don't call GetLastWin32Error so late and
+ use the value we already have from a previous call. Found using
+ Gendarme.
+
2005-10-27 Sebastien Pouliot <[EMAIL PROTECTED]>
* NativeDapiProtection.cs: New. Native access to DPAPI (Data
Modified:
trunk/mcs/class/System.Security/Mono.Security.Cryptography/NativeDapiProtection.cs
===================================================================
---
trunk/mcs/class/System.Security/Mono.Security.Cryptography/NativeDapiProtection.cs
2008-02-10 20:26:53 UTC (rev 95403)
+++
trunk/mcs/class/System.Security/Mono.Security.Cryptography/NativeDapiProtection.cs
2008-02-10 20:28:55 UTC (rev 95404)
@@ -175,7 +175,7 @@
}
if ((encdata == null) || (hr != 0)) {
- throw new CryptographicException
(Marshal.GetLastWin32Error ());
+ throw new CryptographicException (hr);
}
return encdata;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches