Correctly handle S_FALSE return value of IActiveMovie::get_Duration().
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 18 Oct 2010 23:43:14 +0000 (23:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 18 Oct 2010 23:43:14 +0000 (23:43 +0000)
commit40f48834fcfb7f308394a6b3221785b7c8ba45cc
treeac9db85c8d201baed85bcc990e39e767ed9c6445
parenta8b3cea302deee679e1b3b42b61e0bb6110a5513
Correctly handle S_FALSE return value of IActiveMovie::get_Duration().

IActiveMovie::get_Duration() can return S_FALSE in which case outDuration
isn't initialized and so wxAMMediaBackend::GetDuration() would return a
completely wrong value.

Fix this by returning 0 from it instead which seems like the only reasonable
thing to do (in the absence of documentation of this interface it's not really
clear what does S_FALSE return value mean nor why didn't it return it before).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/mediactrl_am.cpp