diff options
author | clsid2 <clsid2@users.sourceforge.net> | 2008-08-22 21:08:47 +0400 |
---|---|---|
committer | clsid2 <clsid2@users.sourceforge.net> | 2008-08-22 21:08:47 +0400 |
commit | cf897ebc99c8af2374b68f1f966a7b978d2fdb37 (patch) | |
tree | 126ee6e9f2056109d270a4608e58cbbd90eae918 /src/apps/mplayerc/PPageFormats.cpp | |
parent | 814cf4e200a70f96da51d2cc93ff9bc0ea2e7e4c (diff) |
Minor AutoPlay fix. Added quotes around executable path.
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@746 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PPageFormats.cpp')
-rw-r--r-- | src/apps/mplayerc/PPageFormats.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apps/mplayerc/PPageFormats.cpp b/src/apps/mplayerc/PPageFormats.cpp index 639d8d470..145f90d68 100644 --- a/src/apps/mplayerc/PPageFormats.cpp +++ b/src/apps/mplayerc/PPageFormats.cpp @@ -260,7 +260,7 @@ void CPPageFormats::AddAutoPlayToRegistry(autoplay_t ap, bool fRegister) if(ERROR_SUCCESS != key.Create(HKEY_CLASSES_ROOT,
CString(CStringA("MediaPlayerClassic.Autorun\\Shell\\Play") + handlers[i].verb + "\\Command"))) return;
- key.SetStringValue(NULL, exe + handlers[i].cmd);
+ key.SetStringValue(NULL, _T("\"") + exe + _T("\"") + handlers[i].cmd);
key.Close();
if(ERROR_SUCCESS != key.Create(HKEY_LOCAL_MACHINE,
@@ -313,7 +313,7 @@ bool CPPageFormats::IsAutoPlayRegistered(autoplay_t ap) len = countof(buff);
if(ERROR_SUCCESS != key.QueryStringValue(NULL, buff, &len))
return(false);
- if(_tcsnicmp(exe, buff, exe.GetLength()))
+ if(_tcsnicmp(_T("\"") + exe, buff, exe.GetLength() + 1))
return(false);
key.Close();
|