diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2010-03-08 13:56:26 +0300 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2010-03-08 13:56:26 +0300 |
commit | fea9bf74da16456aae629c4723781ee48767a6b9 (patch) | |
tree | 03368c8d51568e88905627d60174c747eedefedd /src/apps | |
parent | c4bb8d1134ca17ad4b429cffdb314d9bb70d4314 (diff) |
fix : search in dir function, play video from network share
Patch by X-Dron
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1742 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps')
-rw-r--r-- | src/apps/mplayerc/MainFrm.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/apps/mplayerc/MainFrm.cpp b/src/apps/mplayerc/MainFrm.cpp index 1c9835376..ecde6e670 100644 --- a/src/apps/mplayerc/MainFrm.cpp +++ b/src/apps/mplayerc/MainFrm.cpp @@ -10305,7 +10305,6 @@ bool CMainFrame::OpenMediaPrivate(CAutoPtr<OpenMediaData> pOMD) if (m_fFullScreen && AfxGetAppSettings().fRememberZoomLevel) m_fFirstFSAfterLaunchOnFS = true;
m_LastOpenFile = pOMD->title;
- m_LastOpenFile.Replace('\\', '/');
PostMessage(WM_KICKIDLE); // calls main thread to update things
@@ -10390,7 +10389,7 @@ int CMainFrame::SearchInDir(bool DirForward) CMediaFormats& mf = AfxGetAppSettings().Formats;
- CString dir = m_LastOpenFile.Mid(0,m_LastOpenFile.ReverseFind('/')+1);
+ CString dir = m_LastOpenFile.Mid(0,m_LastOpenFile.ReverseFind('\\')+1);
CString mask = dir + _T("*.*");
WIN32_FIND_DATA fd;
HANDLE h = FindFirstFile(mask, &fd);
|