]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/mimetype.cpp
fix for non precomp
[wxWidgets.git] / src / unix / mimetype.cpp
index f9c9d238579bdc90963c4cd1b22931eb7def5f02..f5e986fe9949677aee47791669ec398e2f61a811 100644 (file)
@@ -124,6 +124,11 @@ public:
             if ( idx )
                 *idx = n;
         }
+        else if ( idx )
+        {
+            // different from any valid index
+            *idx = (size_t)-1;
+        }
 
         return s;
     }