OSDN Git Service

Fix Setting Context Menu Mask Wrong
authorFrank Li <lznuaa@gmail.com>
Thu, 23 Apr 2009 05:51:28 +0000 (13:51 +0800)
committerFrank Li <lznuaa@gmail.com>
Thu, 23 Apr 2009 05:51:28 +0000 (13:51 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/TortoiseProc/Settings/SetLookAndFeelPage.cpp

index 93091b8..7940328 100644 (file)
@@ -31,8 +31,8 @@ CSetLookAndFeelPage::CSetLookAndFeelPage()
        : ISettingsPropPage(CSetLookAndFeelPage::IDD)\r
        , m_bBlock(false)\r
 {\r
-       m_regTopmenu = CRegDWORD(_T("Software\\TortoiseGit\\ContextMenuEntries"), MENUCLONE | MENUPUSH | MENUPULL | MENUCOMMIT);\r
-       m_regTopmenuhigh = CRegDWORD(_T("Software\\TortoiseGit\\ContextMenuEntrieshigh"), 0);\r
+       m_regTopmenu = CRegDWORD(_T("Software\\TortoiseGit\\ContextMenuEntries"), MENUCREATEREPOS|MENUCLONE|MENUCOMMIT);\r
+       m_regTopmenuhigh = CRegDWORD(_T("Software\\TortoiseGit\\ContextMenuEntrieshigh"), (MENUCREATEREPOS|MENUCLONE|MENUCOMMIT)>>32);\r
 \r
        m_topmenu = unsigned __int64(DWORD(m_regTopmenuhigh))<<32;\r
        m_topmenu |= unsigned __int64(DWORD(m_regTopmenu));\r