Fix bug get_aspectRatio() that returned wrong error code.
authorJean-Paul Saman <jpsaman@videolan.org>
Tue, 3 Apr 2007 11:27:19 +0000 (11:27 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Tue, 3 Apr 2007 11:27:19 +0000 (11:27 +0000)
activex/vlccontrol2.cpp

index b772e74..2b01b84 100644 (file)
@@ -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;