X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d6306eb4da8cdac4b5dee9784959672c233eec8..fed485e0946d9cff74fce6afdb169796d90a99f2:/utils/wxMMedia/mmsolve.cpp diff --git a/utils/wxMMedia/mmsolve.cpp b/utils/wxMMedia/mmsolve.cpp index fd4fef2f03..a8cc35eaa1 100644 --- a/utils/wxMMedia/mmsolve.cpp +++ b/utils/wxMMedia/mmsolve.cpp @@ -57,11 +57,11 @@ bool wxMatchMimeType(const wxString& mime_obj, const wxString& type) if (mime_obj.Find('*') != -1) { wxString part_str1[2], part_str2[2]; - part_str1[0] = mime_obj.Left('/'); - part_str1[1] = mime_obj.After('/'); + part_str1[0] = mime_obj.BeforeFirst('/'); + part_str1[1] = mime_obj.AfterFirst('/'); - part_str2[0] = type.Left('/'); - part_str2[1] = type.After('/'); + part_str2[0] = type.BeforeFirst('/'); + part_str2[1] = type.AfterFirst('/'); if (part_str1[0] == "*" && part_str1[1] == "*") return TRUE;