npapi-vlc | branch: master | Rafaël Carré <[email protected]> | Tue Jun 18 23:09:33 2013 +0200| [06c855064e965df1d28cda8f79311d30b561a5c0] | committer: Rafaël Carré
activex: remove code with no effect ppsz_argv[0] was overwritten > http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=06c855064e965df1d28cda8f79311d30b561a5c0 --- activex/plugin.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/activex/plugin.cpp b/activex/plugin.cpp index 15a8f01..84aef19 100644 --- a/activex/plugin.cpp +++ b/activex/plugin.cpp @@ -461,31 +461,12 @@ HRESULT VLCPlugin::onLoad(void) void VLCPlugin::initVLC() { - extern HMODULE DllGetModule(); - /* ** default initialization options */ const char *ppsz_argv[32] = { }; int ppsz_argc = 0; - char p_progpath[MAX_PATH]; - { - TCHAR w_progpath[MAX_PATH]; - DWORD len = GetModuleFileName(DllGetModule(), w_progpath, MAX_PATH); - w_progpath[MAX_PATH-1] = '\0'; - if( len > 0 ) - { - len = WideCharToMultiByte(CP_UTF8, 0, w_progpath, len, p_progpath, - sizeof(p_progpath)-1, NULL, NULL); - if( len > 0 ) - { - p_progpath[len] = '\0'; - ppsz_argv[0] = p_progpath; - } - } - } - /* common settings */ ppsz_argv[ppsz_argc++] = "-vv"; ppsz_argv[ppsz_argc++] = "--no-stats"; _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
