Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
0ac31c77
Commit
0ac31c77
authored
Jun 14, 2008
by
Jean-Paul Saman
Browse files
Turn comment into error message.
parent
ed58d07d
Changes
1
Hide whitespace changes
Inline
Side-by-side
projects/activex/vlccontrol.cpp
View file @
0ac31c77
...
...
@@ -509,16 +509,28 @@ STDMETHODIMP VLCControl::toggleMute(void)
STDMETHODIMP
VLCControl
::
setVariable
(
BSTR
name
,
VARIANT
value
)
{
/** setVariable() is an unsafe interface because of security
implications it has and is thus removed. */
return
E_INVALIDARG
;
libvlc_instance_t
*
p_libvlc
;
HRESULT
result
=
_p_instance
->
getVLC
(
&
p_libvlc
);
if
(
SUCCEEDED
(
result
)
)
{
_p_instance
->
setErrorInfo
(
IID_IVLCControl
,
"setVariable() is an unsafe interface to use. "
"It has been removed because of security implications."
);
}
return
E_FAIL
;
};
STDMETHODIMP
VLCControl
::
getVariable
(
BSTR
name
,
VARIANT
*
value
)
{
/** getVariable() is an unsafe interface because of security
implications it has and is thus removed. */
return
E_INVALIDARG
;
libvlc_instance_t
*
p_libvlc
;
HRESULT
result
=
_p_instance
->
getVLC
(
&
p_libvlc
);
if
(
SUCCEEDED
(
result
)
)
{
_p_instance
->
setErrorInfo
(
IID_IVLCControl
,
"getVariable() is an unsafe interface to use. "
"It has been removed because of security implications."
);
}
return
E_FAIL
;
};
void
VLCControl
::
FreeTargetOptions
(
char
**
cOptions
,
int
cOptionCount
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment