Ignore:
Timestamp:
Aug 24, 2007, 11:14:46 AM (17 years ago)
Author:
イグトランス (egtra)
Message:

フルコンパイルでのミスあぶり出し。註:修正は全て@300や@301以前に行われた。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/Classes/ActiveBasic/Windows/CriticalSection.ab

    r297 r303  
    77
    88Namespace Detail
    9     Const InterlockedExchangeAnyPointer(p, x) = InterlockedExchangePointer(VarPtr(p) As VoidPtr, x)
     9    Const InterlockedExchangeAnyPointer(p, x) = InterlockedExchangePointer(ByVal VarPtr(p) As *VoidPtr, x)
    1010End Namespace
    1111
     
    5353
    5454    /*Override*/ Sub Dispose()
    55         Dim pcs = Detail.InterlockedExchangeAnyPointer(pcs, 0)
    56         If pcs <> 0 Then
    57             LeaveCriticalSection(ByVal pcs)
     55'       Dim p = ActiveBasic.Windows.Detail.InterlockedExchangeAnyPointer(pcs, 0)
     56        Dim p = InterlockedExchangePointer(pcs As VoidPtr, 0) As *CRITICAL_SECTION
     57        If p <> 0 Then
     58            LeaveCriticalSection(ByVal p)
    5859        End If
    5960    End Sub
Note: See TracChangeset for help on using the changeset viewer.