diff options
Diffstat (limited to 'src/apps/mplayerc/FakeFilterMapper2.cpp')
-rw-r--r-- | src/apps/mplayerc/FakeFilterMapper2.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/apps/mplayerc/FakeFilterMapper2.cpp b/src/apps/mplayerc/FakeFilterMapper2.cpp index daafea342..e44b2b34b 100644 --- a/src/apps/mplayerc/FakeFilterMapper2.cpp +++ b/src/apps/mplayerc/FakeFilterMapper2.cpp @@ -577,6 +577,12 @@ STDMETHODIMP CFilterMapper2::NonDelegatingQueryInterface(REFIID riid, void** ppv void CFilterMapper2::Register(CString path)
{
+ // Add Filters directory into dll path, in case it needs some dlls from there..
+ TCHAR buffer[512] = TEXT("");
+ _tcscpy(buffer, path);
+ PathRemoveFileSpec(buffer);
+ SetDllDirectory(buffer);
+ // Load filter
if(HMODULE h = LoadLibrary(path)) {
typedef HRESULT (__stdcall * PDllRegisterServer)();
if(PDllRegisterServer p = (PDllRegisterServer)GetProcAddress(h, "DllRegisterServer")) {
|