aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/cores/DllLoader/exports/emu_msvcrt.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/xbmc/cores/DllLoader/exports/emu_msvcrt.cpp b/xbmc/cores/DllLoader/exports/emu_msvcrt.cpp
index 2b0191a637..1ada0ad543 100644
--- a/xbmc/cores/DllLoader/exports/emu_msvcrt.cpp
+++ b/xbmc/cores/DllLoader/exports/emu_msvcrt.cpp
@@ -842,6 +842,12 @@ extern "C"
URIUtils::GetExtension(url.GetFileName(),strMask);
url.SetFileName(url.GetFileName().Left(url.GetFileName().Find("*.")));
}
+ else if (url.GetFileName().Find("*") != string::npos)
+ {
+ CStdString strReplaced = url.GetFileName();
+ strReplaced.Replace("*","");
+ url.SetFileName(strReplaced);
+ }
int iDirSlot=0; // locate next free directory
while ((vecDirsOpen[iDirSlot].curr_index != -1) && (iDirSlot<MAX_OPEN_DIRS)) iDirSlot++;
if (iDirSlot >= MAX_OPEN_DIRS)
@@ -851,8 +857,6 @@ extern "C"
CURL url2(url.GetFileName());
url = url2;
}
- CStdString fName = url.GetFileName();
- url.SetFileName("");
strURL = url.Get();
bVecDirsInited = true;
vecDirsOpen[iDirSlot].items.Clear();