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:
authorArmada <jules.blok@gmail.com>2013-02-02 00:13:25 +0400
committerArmada <jules.blok@gmail.com>2013-02-02 02:42:36 +0400
commit5fbf62fdb20a0632f772eac4b69d3733f6cccb2d (patch)
tree4f1d5698a6c874031f1edb8740b44211e754c785
parentcaffb97e2448c7514ce8c5c992468a9c9773334b (diff)
Move filter name to macro definition.
-rw-r--r--RFS.cpp6
-rw-r--r--RFS.h2
-rw-r--r--Utils.cpp3
3 files changed, 7 insertions, 4 deletions
diff --git a/RFS.cpp b/RFS.cpp
index 62ef357..b344ed1 100644
--- a/RFS.cpp
+++ b/RFS.cpp
@@ -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)
diff --git a/RFS.h b/RFS.h
index 140d3ca..c3651bd 100644
--- a/RFS.h
+++ b/RFS.h
@@ -19,6 +19,8 @@
#include "OutputPin.h"
+#define RARFileSourceName L"RAR File Source"
+
typedef struct
{
const char *extension;
diff --git a/Utils.cpp b/Utils.cpp
index cf639b5..786c3fb 100644
--- a/Utils.cpp
+++ b/Utils.cpp
@@ -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