npapi-vlc | branch: master | Rafaël Carré <[email protected]> | Tue Jun 18 23:08:48 2013 +0200| [0f6a66100cef21f5c2b4eb571bf3dd4bd52e2f19] | committer: Rafaël Carré
activex: --plugin-path doesn't exist anymore > http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=0f6a66100cef21f5c2b4eb571bf3dd4bd52e2f19 --- activex/plugin.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/activex/plugin.cpp b/activex/plugin.cpp index 5a46078..90ced08 100644 --- a/activex/plugin.cpp +++ b/activex/plugin.cpp @@ -486,31 +486,6 @@ void VLCPlugin::initVLC() } } - HKEY h_key; - char p_pluginpath[MAX_PATH]; - if( RegOpenKeyEx( HKEY_LOCAL_MACHINE, TEXT("Software\\VideoLAN\\VLC"), - 0, KEY_READ, &h_key ) == ERROR_SUCCESS ) - { - DWORD i_type, i_data = MAX_PATH; - TCHAR w_pluginpath[MAX_PATH]; - if( RegQueryValueEx( h_key, TEXT("InstallDir"), 0, &i_type, - (LPBYTE)w_pluginpath, &i_data ) == ERROR_SUCCESS ) - { - w_pluginpath[MAX_PATH-1] = '\0'; - if( i_type == REG_SZ ) - { - if( WideCharToMultiByte(CP_UTF8, 0, w_pluginpath, -1, p_pluginpath, - sizeof(p_pluginpath)-sizeof("\\plugins")+1, NULL, NULL) ) - { - strcat( p_pluginpath, "\\plugins" ); - ppsz_argv[ppsz_argc++] = "--plugin-path"; - ppsz_argv[ppsz_argc++] = p_pluginpath; - } - } - } - RegCloseKey( h_key ); - } - // make sure plugin isn't affected with VLC single instance mode ppsz_argv[ppsz_argc++] = "--no-one-instance"; _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
