Ignore:
Timestamp:
Apr 30, 2007, 1:56:57 PM (18 years ago)
Author:
イグトランス (egtra)
Message:

Controlがコンパイルできるように修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/Classes/System/Runtime/InteropServices/GCHandle.ab

    r208 r223  
    1212    Sub Target(obj As Object)
    1313        allocated.Add(obj)
     14        handle = GetPointer(VarPtr(obj))
    1415    End Sub
    1516
     
    2425
    2526    Sub Free()
    26         Dim pobj = VarPtr(handle) As *Object
    2727        allocated.Remove(Target)
    2828        handle = 0
     
    3030
    3131    Static Function ToIntPtr(h As GCHandle) As LONG_PTR
    32         Return h.handle As LONG_PTR Xor &hffffffff As LONG_PTR
     32        Return h.handle As LONG_PTR
    3333    End Function
    3434
    3535    Static Function FromIntPtr(ip As LONG_PTR) As GCHandle
    3636        FromIntPtr = New GCHandle
    37         FromIntPtr.handle = (ip Xor &hffffffff As LONG_PTR) As VoidPtr
     37        FromIntPtr.handle = ip As VoidPtr
    3838    End Function
    3939
Note: See TracChangeset for help on using the changeset viewer.