Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/awt
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2011-01-20 08:39:49 +0300
committerjfrijters <jfrijters>2011-01-20 08:39:49 +0300
commit127273a1c1d54348f5d259cca1bbab455fd0c2e6 (patch)
tree024dbedf46de3704d2048cefbbbdaece029a117e /awt
parentd7848c305e3b311be32effeeb1a23f7d25875219 (diff)
Fix bogus IntPtr == null check.
Diffstat (limited to 'awt')
-rw-r--r--awt/native.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/awt/native.cs b/awt/native.cs
index e342c2b8..41be3473 100644
--- a/awt/native.cs
+++ b/awt/native.cs
@@ -448,7 +448,7 @@ namespace IKVM.NativeCode.sun.awt.shell
[System.Security.SecurityCritical]
public static IntPtr getNextPIDLEntry(IntPtr pIDL)
{
- if (pIDL == null)
+ if (pIDL == IntPtr.Zero)
{
return IntPtr.Zero;
}
@@ -476,7 +476,7 @@ namespace IKVM.NativeCode.sun.awt.shell
[System.Security.SecurityCritical]
public static IntPtr copyFirstPIDLEntry(IntPtr pIDL)
{
- if (pIDL == null)
+ if (pIDL == IntPtr.Zero)
{
return IntPtr.Zero;
}