mirror of https://code.videolan.org/videolan/vlc
Fix bug get_aspectRatio() that returned wrong error code.
This commit is contained in:
parent
5c720da712
commit
86a8407f82
|
@ -2168,7 +2168,7 @@ STDMETHODIMP VLCVideo::get_aspectRatio(BSTR* aspect)
|
|||
*aspect = BSTRFromCStr(CP_UTF8, psz_aspect);
|
||||
free( psz_aspect );
|
||||
psz_aspect = NULL;
|
||||
return (NULL == aspect) ? E_OUTOFMEMORY : NOERROR;
|
||||
return (NULL == *aspect) ? E_OUTOFMEMORY : NOERROR;
|
||||
}
|
||||
if( psz_aspect ) free( psz_aspect );
|
||||
psz_aspect = NULL;
|
||||
|
|
Loading…
Reference in New Issue