Commit 74c9320e authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix bug get_aspectRatio() that returned wrong error code.

parent 1a4b3137
......@@ -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;
......
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