diff options
-rw-r--r-- | xbmc/utils/FileUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/utils/FileUtils.cpp b/xbmc/utils/FileUtils.cpp index e540eb48b6..a79c30dbae 100644 --- a/xbmc/utils/FileUtils.cpp +++ b/xbmc/utils/FileUtils.cpp @@ -252,7 +252,7 @@ bool CFileUtils::parseMimeType(const std::string& mimeType, std::string& type, s pos++; // skip '/' t = 0; - while (mimeTypeC[pos] && whitespaceSmclnChars.find(mimeTypeC[pos]) != std::string::npos && t++ <= 127) + while (mimeTypeC[pos] && whitespaceSmclnChars.find(mimeTypeC[pos]) == std::string::npos && t++ <= 127) { const char chr = mimeTypeC[pos]; if (chr >= 'A' && chr <= 'Z') |