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

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmada <jules.blok@gmail.com>2013-01-11 23:35:03 +0400
committerArmada <jules.blok@gmail.com>2013-01-12 15:26:51 +0400
commit49115d86e116392e10c2118330ba469602d9f985 (patch)
tree830b047254ec64a8930673f74a2607a2557c239c /src/filters/parser/BaseSplitter/BaseSplitter.cpp
parentaf1ebc1fd983e8b0e13f792449b8879325d24578 (diff)
Fix "Wrapper object use after free".
The shorthand is being cast to CStringW by the preprocessor. This commit fixes that by making the cast to LPCWSTR explicit.
Diffstat (limited to 'src/filters/parser/BaseSplitter/BaseSplitter.cpp')
-rw-r--r--src/filters/parser/BaseSplitter/BaseSplitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filters/parser/BaseSplitter/BaseSplitter.cpp b/src/filters/parser/BaseSplitter/BaseSplitter.cpp
index e9ad126a8..84fcc8fe7 100644
--- a/src/filters/parser/BaseSplitter/BaseSplitter.cpp
+++ b/src/filters/parser/BaseSplitter/BaseSplitter.cpp
@@ -1286,7 +1286,7 @@ STDMETHODIMP CBaseSplitterFilter::GetCurFile(LPOLESTR* ppszFileName, AM_MEDIA_TY
LPCTSTR CBaseSplitterFilter::GetPartFilename(IAsyncReader* pAsyncReader)
{
CComQIPtr<IFileHandle> pFH = pAsyncReader;
- return pFH ? pFH->GetFileName() : m_fn;
+ return pFH ? pFH->GetFileName() : (LPCWSTR)m_fn;
}
// IMediaSeeking