gbrainy r449 - trunk/src
- From: jmas svn gnome org
- To: svn-commits-list gnome org
- Subject: gbrainy r449 - trunk/src
- Date: Fri, 29 Aug 2008 18:59:53 +0000 (UTC)
Author: jmas
Date: Fri Aug 29 18:59:53 2008
New Revision: 449
URL: http://svn.gnome.org/viewvc/gbrainy?rev=449&view=rev
Log:
Use IntPtr.Zero
Modified:
trunk/src/gbrainy.cs
Modified: trunk/src/gbrainy.cs
==============================================================================
--- trunk/src/gbrainy.cs (original)
+++ trunk/src/gbrainy.cs Fri Aug 29 18:59:53 2008
@@ -204,7 +204,7 @@
//
private void FixLocaleInfo ()
{
- IntPtr st;
+ IntPtr st = IntPtr.Zero;
lconv lv;
int platform = (int) Environment.OSVersion.Platform;
@@ -216,7 +216,7 @@
try {
st = localeconv ();
- if (st == null) return;
+ if (st == IntPtr.Zero) return;
lv = (lconv) Marshal.PtrToStructure (st, typeof (lconv));
CultureInfo culture = (CultureInfo) CultureInfo.CurrentCulture.Clone ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]