2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / GCHandle.cs
index 012218952a79c964d46698701fb4381a8751b02f..ec5f1e1980a5b7e1cc2fa01ceb6c1fa7207cc835 100755 (executable)
@@ -64,7 +64,7 @@ namespace System.Runtime.InteropServices
                { 
                        get
                        {
-                               return (handle != 0);
+                               return (handle != -1);
                        }
                }
 
@@ -104,7 +104,7 @@ namespace System.Runtime.InteropServices
                public void Free()
                {
                        FreeHandle(handle);
-                       handle = 0;
+                       handle = -1;
                }
                
                public static explicit operator IntPtr (GCHandle value)