From 10403767ee6bcf8b4f14061b72c6efb922ae0893 Mon Sep 17 00:00:00 2001 From: Geoffroy Couprie Date: Wed, 29 Oct 2008 19:02:49 +0100 Subject: [PATCH] Fix #2062 for mozilla plugin --- projects/mozilla/vlcplugin.cpp | 1 + projects/mozilla/vlcplugin.h | 6 ++++++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp index ec52f29..fd7b3ed 100644 --- a/projects/mozilla/vlcplugin.cpp +++ b/projects/mozilla/vlcplugin.cpp @@ -102,6 +102,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[]) { if( i_type == REG_SZ ) { + SetDllDirectoryA(p_data); strcat( p_data, "\\plugins" ); ppsz_argv[ppsz_argc++] = "--plugin-path"; ppsz_argv[ppsz_argc++] = p_data; diff --git a/projects/mozilla/vlcplugin.h b/projects/mozilla/vlcplugin.h index 3d62d30..a334e1a 100644 --- a/projects/mozilla/vlcplugin.h +++ b/projects/mozilla/vlcplugin.h @@ -29,6 +29,12 @@ #ifndef __VLCPLUGIN_H__ #define __VLCPLUGIN_H__ +#ifdef XP_WIN +#define _WIN32_WINNT 0x0502 +#include +#include +#endif + #include #include #include "control/nporuntime.h" -- 1.6.0.2