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:
Diffstat (limited to 'Mediatype.cpp')
-rw-r--r--Mediatype.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mediatype.cpp b/Mediatype.cpp
index 39cd518..3addd7e 100644
--- a/Mediatype.cpp
+++ b/Mediatype.cpp
@@ -249,7 +249,7 @@ int checkFileForMediaType (CRFSFile *file, CRFSList<MediaType> *mediaTypeList, M
MediaType *mt;
CheckByteGroup *cbg;
bool matches;
- BOOL ret;
+ HRESULT hr;
LONG lBytesRead;
LONGLONG actOffset;
BYTE *necessaryBytes;
@@ -286,9 +286,9 @@ int checkFileForMediaType (CRFSFile *file, CRFSList<MediaType> *mediaTypeList, M
}
// read the necessary amount of bytes to compare to value (after masking)
- ret = file->SyncRead (actOffset, cbg->checkBytes [i].byteCount, necessaryBytes, &lBytesRead);
+ hr = file->SyncRead (actOffset, cbg->checkBytes [i].byteCount, necessaryBytes, &lBytesRead);
- if (ret != S_OK)
+ if (hr != S_OK)
{
matches = false;
delete [] necessaryBytes;