Changeset 439


Ignore:
Timestamp:
Feb 28, 2008, 7:05:42 PM (17 years ago)
Author:
dai
Message:

InterlockedExchangePointer関数の第一引数に意図するポインタ値が渡っていなかったため、修正した。

Location:
trunk/Include/Classes
Files:
2 edited

Legend:

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

    r411 r439  
    5252    /*Override*/ Sub Dispose()
    5353'       Dim pcsOld = ActiveBasic.Windows.Detail.InterlockedExchangeAnyPointer(pcs, 0)
    54         Dim pcsOld = InterlockedExchangePointer(pcs As VoidPtr, 0) As *CRITICAL_SECTION
     54        Dim pcsOld = InterlockedExchangePointer(ByVal VarPtr(pcs) As *VoidPtr, 0) As *CRITICAL_SECTION
    5555        If pcsOld <> 0 Then
    5656            LeaveCriticalSection(ByVal pcsOld)
  • trunk/Include/Classes/System/IO/FileStream.ab

    r437 r439  
    429429        If handle <> 0 Then
    430430            Flush()
    431             CloseHandle(InterlockedExchangePointer(VarPtr(handle), NULL))
     431            CloseHandle(InterlockedExchangePointer(ByVal VarPtr(handle), NULL))
    432432        End If
    433433    End Sub
Note: See TracChangeset for help on using the changeset viewer.