diff options
author | Armada <jules.blok@gmail.com> | 2013-02-02 00:13:25 +0400 |
---|---|---|
committer | Armada <jules.blok@gmail.com> | 2013-02-02 02:42:36 +0400 |
commit | 5fbf62fdb20a0632f772eac4b69d3733f6cccb2d (patch) | |
tree | 4f1d5698a6c874031f1edb8740b44211e754c785 | |
parent | caffb97e2448c7514ce8c5c992468a9c9773334b (diff) |
Move filter name to macro definition.
-rw-r--r-- | RFS.cpp | 6 | ||||
-rw-r--r-- | RFS.h | 2 | ||||
-rw-r--r-- | Utils.cpp | 3 |
3 files changed, 7 insertions, 4 deletions
@@ -62,7 +62,7 @@ const AMOVIESETUP_PIN sudpPin = const AMOVIESETUP_FILTER sudRARFileSource = { &CLSID_RARFileSource, // Filter CLSID - L"RAR File Source", // Filter name + RARFileSourceName, // Filter name MERIT_UNLIKELY, // Filter merit 1, // Number of pins &sudpPin // Pin information @@ -73,7 +73,7 @@ const AMOVIESETUP_FILTER sudRARFileSource = CFactoryTemplate g_Templates [] = { { - L"RAR File Source", + RARFileSourceName, &CLSID_RARFileSource, CRARFileSource::CreateInstance, NULL, @@ -191,7 +191,7 @@ STDAPI DllUnregisterServer () } CRARFileSource::CRARFileSource (LPUNKNOWN punk, HRESULT *phr) : - CBaseFilter (L"RAR File Source", punk, &m_lock, CLSID_RARFileSource), + CBaseFilter (RARFileSourceName, punk, &m_lock, CLSID_RARFileSource), m_pin (this, &m_lock, phr), m_file_name (NULL), m_file (NULL) @@ -19,6 +19,8 @@ #include "OutputPin.h" +#define RARFileSourceName L"RAR File Source" + typedef struct { const char *extension; @@ -19,6 +19,7 @@ #include <strsafe.h> #include "Utils.h" +#include "RFS.h" void ErrorMsg (DWORD errorCode, wchar_t *format, ...) { @@ -44,7 +45,7 @@ void ErrorMsg (DWORD errorCode, wchar_t *format, ...) } DbgLog((LOG_ERROR, 0, L"%s", buffer)); - MessageBox (NULL, buffer, L"RAR File Source", MB_OK | MB_ICONERROR); + MessageBox (NULL, buffer, RARFileSourceName, MB_OK | MB_ICONERROR); } #ifdef _DEBUG |