Commit fe0bf180 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: fix file opening from context menu

Also when double-clicking.
This fixes #3604
parent 8e6959cc
/***************************************************************************** /*****************************************************************************
* specific.c: Win32 specific initilization * specific.c: Win32 specific initilization
***************************************************************************** *****************************************************************************
* Copyright (C) 2001-2004 the VideoLAN team * Copyright (C) 2001-2004, 2010 the VideoLAN team
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* Gildas Bazin <gbazin@videolan.org> * Gildas Bazin <gbazin@videolan.org>
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <vlc_common.h> #include <vlc_common.h>
#include "../libvlc.h" #include "../libvlc.h"
#include <vlc_playlist.h> #include <vlc_playlist.h>
#include <vlc_url.h>
#include "../config/vlc_getopt.h" #include "../config/vlc_getopt.h"
...@@ -348,7 +349,7 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam, ...@@ -348,7 +349,7 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
{ {
i_options++; i_options++;
} }
playlist_AddExt( p_playlist, ppsz_argv[i_opt], playlist_AddExt( p_playlist, make_URI( ppsz_argv[i_opt] ),
NULL, PLAYLIST_APPEND | NULL, PLAYLIST_APPEND |
( ( i_opt || p_data->enqueue ) ? 0 : PLAYLIST_GO ), ( ( i_opt || p_data->enqueue ) ? 0 : PLAYLIST_GO ),
PLAYLIST_END, -1, PLAYLIST_END, -1,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment