Changeset 0ac31c77f2e46da5bc61cb3dcdc77651ecf43027
- Timestamp:
- 14/06/08 11:05:32
(4 months ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1213434332 +0200
- git-parent:
[ed58d07d9bc6718a4856fa57caf7615ba5334623]
- git-author:
- Jean-Paul Saman <jpsaman@videolan.org> 1213434332 +0200
- Message:
Turn comment into error message.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| ref7ff28 |
r0ac31c7 |
|
| 510 | 510 | STDMETHODIMP VLCControl::setVariable(BSTR name, VARIANT value) |
|---|
| 511 | 511 | { |
|---|
| 512 | | /** setVariable() is an unsafe interface because of security |
|---|
| 513 | | implications it has and is thus removed. */ |
|---|
| 514 | | return E_INVALIDARG; |
|---|
| | 512 | libvlc_instance_t* p_libvlc; |
|---|
| | 513 | HRESULT result = _p_instance->getVLC(&p_libvlc); |
|---|
| | 514 | if( SUCCEEDED(result) ) |
|---|
| | 515 | { |
|---|
| | 516 | _p_instance->setErrorInfo(IID_IVLCControl, |
|---|
| | 517 | "setVariable() is an unsafe interface to use. " |
|---|
| | 518 | "It has been removed because of security implications." ); |
|---|
| | 519 | } |
|---|
| | 520 | return E_FAIL; |
|---|
| 515 | 521 | }; |
|---|
| 516 | 522 | |
|---|
| 517 | 523 | STDMETHODIMP VLCControl::getVariable(BSTR name, VARIANT *value) |
|---|
| 518 | 524 | { |
|---|
| 519 | | /** getVariable() is an unsafe interface because of security |
|---|
| 520 | | implications it has and is thus removed. */ |
|---|
| 521 | | return E_INVALIDARG; |
|---|
| | 525 | libvlc_instance_t* p_libvlc; |
|---|
| | 526 | HRESULT result = _p_instance->getVLC(&p_libvlc); |
|---|
| | 527 | if( SUCCEEDED(result) ) |
|---|
| | 528 | { |
|---|
| | 529 | _p_instance->setErrorInfo(IID_IVLCControl, |
|---|
| | 530 | "getVariable() is an unsafe interface to use. " |
|---|
| | 531 | "It has been removed because of security implications." ); |
|---|
| | 532 | } |
|---|
| | 533 | return E_FAIL; |
|---|
| 522 | 534 | }; |
|---|
| 523 | 535 | |
|---|