Skip to content
Browse files

[WIN32] fixed: cpluff wasn't able to scan directories via smb. I dunn…

…o why we used to set url.Setfilename to "" as with smb paths the filename contains also the path and thus the path was deleted. Milkdrop still works fine with this change so I assume it isn't needed anymore. Addons still doesn't work when the profile dir is on an unc path.
  • Loading branch information...
1 parent 88dff97 commit 5e4b59dec3a013d7071e5066e5e8479c3eb1fb08 @wsoltys wsoltys committed Oct 3, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 xbmc/cores/DllLoader/exports/emu_msvcrt.cpp
View
8 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();

0 comments on commit 5e4b59d

Please sign in to comment.
Something went wrong with that request. Please try again.