Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/rarfilesource.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOctaneSnail <os@v12pwr.com>2008-12-22 02:46:15 +0300
committerOctaneSnail <os@v12pwr.com>2008-12-22 02:46:15 +0300
commit358b514e12c89300b5614b8e9715cd6ecb5958a2 (patch)
tree46bc4835b50c9f5592f00136bc83d0ef011afe24
parentf0bb19a25ad6086683ca506449b543e81892b78c (diff)
Fix SyncRead return value.
-rw-r--r--OutputPin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/OutputPin.cpp b/OutputPin.cpp
index 0ac6b40..b36a536 100644
--- a/OutputPin.cpp
+++ b/OutputPin.cpp
@@ -573,7 +573,7 @@ HRESULT CRFSOutputPin::SyncRead (LONGLONG llPosition, DWORD lLength, BYTE* pBuff
if (pos == -1)
{
DbgLog((LOG_TRACE, 2, L"FindStartPart bailed length = %lu, pos = %lld", lLength, llPosition));
- return ERROR_HANDLE_EOF;
+ return S_FALSE;
}
#ifdef _DEBUG
@@ -593,7 +593,7 @@ HRESULT CRFSOutputPin::SyncRead (LONGLONG llPosition, DWORD lLength, BYTE* pBuff
if (!(o.hEvent = CreateEvent (NULL, FALSE, FALSE, NULL)))
{
ErrorMsg (GetLastError (), L"CRFSOutputPin::SyncRead - CreateEvent)");
- return (S_FALSE);
+ return S_FALSE;
}
while (true)