Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

shellext: kill local string var

Changeset fcc8b13ec20d

Parent 740b548daa93

by Adrian Buehlmann

Changes to one file · Browse files at fcc8b13ec20d Showing diff from parent 740b548daa93 Diff from another changeset...

 
90
91
92
93
 
 
94
 
 
95
96
97
98
99
100
101
 
90
91
92
 
93
94
95
96
97
98
 
 
 
99
100
101
@@ -90,12 +90,12 @@
   int GetRegistryConfig(const std::string& name, std::string& res)  { - std::string subkey = "Software\\TortoiseHg"; + const char* const subkey = "Software\\TortoiseHg"; +   HKEY hkey = 0; + LONG rv = RegOpenKeyExA( + HKEY_CURRENT_USER, subkey, 0, KEY_READ, &hkey);   - LONG rv = RegOpenKeyExA( - HKEY_CURRENT_USER, subkey.c_str(), 0, KEY_READ, &hkey); -   if (rv != ERROR_SUCCESS || hkey == 0)   return 0;