From: Vadim Zeitlin Date: Thu, 9 Mar 2006 19:09:22 +0000 (+0000) Subject: always return something in GetCommandForVerb() second argument, even if verb not... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8a7fc9b5a79fbfe7a5e3c224fc41aad98e2eb17d always return something in GetCommandForVerb() second argument, even if verb not found git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index f9c9d23857..f5e986fe99 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -124,6 +124,11 @@ public: if ( idx ) *idx = n; } + else if ( idx ) + { + // different from any valid index + *idx = (size_t)-1; + } return s; }