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-13 14:34:58 +0300
committerOctaneSnail <os@v12pwr.com>2008-12-13 14:36:08 +0300
commit56593e8a2543de45fd97aed91aa73a29b49a418b (patch)
treed84ca5accab485fab502d5e2d40ffac090b12797
parente00c8419f1198f25d0fc113963735a5b581c0905 (diff)
Fix bad NULL pointer check.
Spotted by OV2.
-rw-r--r--RFS.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/RFS.cpp b/RFS.cpp
index d2a5896..d6a1c60 100644
--- a/RFS.cpp
+++ b/RFS.cpp
@@ -736,7 +736,7 @@ STDMETHODIMP CRARFileSource::Load (LPCOLESTR lpwszFileName, const AM_MEDIA_TYPE
// Behaves like IPersistFile::Load
STDMETHODIMP CRARFileSource::GetCurFile (LPOLESTR *ppszFileName, AM_MEDIA_TYPE *pmt)
{
- if (ppszFileName)
+ if (!ppszFileName)
return E_POINTER;
if (m_file_name != NULL)