Skip to content

Commit

Permalink
[WIN32] fixed: cpluff wasn't able to scan directories via smb. I dunn…
Browse files Browse the repository at this point in the history
…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
WiSo committed Oct 3, 2012
1 parent 88dff97 commit 5e4b59d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions xbmc/cores/DllLoader/exports/emu_msvcrt.cpp
Expand Up @@ -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)
Expand All @@ -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();
Expand Down

0 comments on commit 5e4b59d

Please sign in to comment.