Fixed wrong pointer passed to unlock method.

This commit is contained in:
soukoku
2015-01-03 12:58:37 -05:00
parent 844f84e259
commit d7a2bebe2a
4 changed files with 17 additions and 9 deletions

View File

@@ -773,7 +773,8 @@ namespace NTwain.Data
{
WriteValue(baseAddr, ref offset, value.ItemType, item);
}
memoryManager.Unlock(baseAddr);
//memoryManager.Unlock(baseAddr);
memoryManager.Unlock(_hContainer);
}
void SetRangeValue(TWRange value, IMemoryManager memoryManager)
@@ -809,7 +810,8 @@ namespace NTwain.Data
{
WriteValue(baseAddr, ref offset, value.ItemType, item);
}
memoryManager.Unlock(baseAddr);
memoryManager.Unlock(_hContainer);
//memoryManager.Unlock(baseAddr);
}
#endregion
@@ -1484,7 +1486,8 @@ namespace NTwain.Data
{
if (lockPtr != IntPtr.Zero)
{
PlatformInfo.Current.MemoryManager.Unlock(lockPtr);
PlatformInfo.Current.MemoryManager.Unlock(Item);
//PlatformInfo.Current.MemoryManager.Unlock(lockPtr);
}
}
}