diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2013-05-03 15:43:14 +0400 |
---|---|---|
committer | Armada <jules.blok@gmail.com> | 2013-08-13 21:18:00 +0400 |
commit | 42d8f1a19ec3e622a45d7c30bf024b426e53cd69 (patch) | |
tree | 97634ac1f7beeba2b9cbed85c3569e931045d41b | |
parent | 6e8cdbbd0243e0fff32f7e2c83c142d43b7fd5d6 (diff) |
Mediatype.cpp: Fix cast from HRESULT to BOOL.
Found with /analyze, warning C6214, C6216.
-rw-r--r-- | Mediatype.cpp | 6 |
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; |