diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2008-08-16 09:30:58 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2008-08-16 09:30:58 +0400 |
commit | 2ea640f82dd475992e3f0ac7fbf5c0bed891651b (patch) | |
tree | a379a5c7eba5ba15f8ef30eb21161c7eeb00399f /src/apps/mplayerc/PPageFormats.cpp | |
parent | e4c03bad00ab4c3ac0e386f5217a58f0405ae900 (diff) |
little FIX about file association for 731rev.
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@732 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PPageFormats.cpp')
-rw-r--r-- | src/apps/mplayerc/PPageFormats.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/apps/mplayerc/PPageFormats.cpp b/src/apps/mplayerc/PPageFormats.cpp index e27619efa..9a6a88203 100644 --- a/src/apps/mplayerc/PPageFormats.cpp +++ b/src/apps/mplayerc/PPageFormats.cpp @@ -154,6 +154,7 @@ bool CPPageFormats::IsRegistered(CString ext, CString strProgID) TCHAR buff[MAX_PATH];
ULONG len = sizeof(buff);
+ bIsDefault = FALSE;
if(ERROR_SUCCESS == key.Open(HKEY_CLASSES_ROOT, strProgID + _T("\\shell\\open\\command"), KEY_READ))
{
CString strCommand = GetOpenCommand();
@@ -172,14 +173,9 @@ bool CPPageFormats::RegisterExt(CString ext, CString strProgID, CString strLabel if(!fRegister)
{
- // Empty "to playlist option"
- if(ERROR_SUCCESS != key.Create(HKEY_CLASSES_ROOT, strProgID + _T("\\shell\\enqueue\\command"))) return(false);
- if(ERROR_SUCCESS != key.SetStringValue(NULL, _T(""))) return(false);
-
- // Empty "Play option"
- if(ERROR_SUCCESS != key.Create(HKEY_CLASSES_ROOT, strProgID + _T("\\shell\\open\\command"))) return(false);
- if(ERROR_SUCCESS != key.SetStringValue(NULL, _T(""))) return(false);
+ key.Attach(HKEY_CLASSES_ROOT);
+ key.RecurseDeleteKey(strProgID+_T("\\shell"));
return(true);
}
|