summaryrefslogtreecommitdiff
path: root/plugins/ShellExt/src/main.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-02-05 18:32:01 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-02-05 18:32:01 +0000
commit9266f20959d58859070111cafe2a054de906fbb0 (patch)
tree15b13eb1c420388482c299ffc8759edb00fef455 /plugins/ShellExt/src/main.cpp
parentc8e8661c05692ddc2a709839cfbeec7c35bd04e2 (diff)
ShlExt:
-translation fixes -Minor bugfixes git-svn-id: http://svn.miranda-ng.org/main/trunk@12010 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ShellExt/src/main.cpp')
-rw-r--r--plugins/ShellExt/src/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/ShellExt/src/main.cpp b/plugins/ShellExt/src/main.cpp
index 24e1cdc736..12a09506a4 100644
--- a/plugins/ShellExt/src/main.cpp
+++ b/plugins/ShellExt/src/main.cpp
@@ -82,8 +82,8 @@ STDAPI DllCanUnloadNow()
struct HRegKey
{
- HRegKey(HKEY hRoot, const char *ptszKey) : m_key(NULL)
- { RegCreateKeyExA(hRoot, ptszKey, 0, 0, 0, KEY_SET_VALUE | KEY_CREATE_SUB_KEY, 0, &m_key, 0);
+ HRegKey(HKEY hRoot, const TCHAR *ptszKey) : m_key(NULL)
+ { RegCreateKeyEx(hRoot, ptszKey, 0, 0, 0, KEY_SET_VALUE | KEY_CREATE_SUB_KEY, 0, &m_key, 0);
}
~HRegKey() { if (m_key) RegCloseKey(m_key); }
@@ -101,7 +101,7 @@ char str4[] = "Apartment";
STDAPI DllRegisterServer()
{
- HRegKey k1(HKEY_CLASSES_ROOT, "miranda.shlext");
+ HRegKey k1(HKEY_CLASSES_ROOT, _T("miranda.shlext"));
if (k1 == NULL)
return E_FAIL;
@@ -113,7 +113,7 @@ STDAPI DllRegisterServer()
//////////////////////////////////////////////////////////////////////////////////////
- HRegKey kClsid(HKEY_CLASSES_ROOT, "CLSID\\{72013A26-A94C-11d6-8540-A5E62932711D}");
+ HRegKey kClsid(HKEY_CLASSES_ROOT, _T("CLSID\\{72013A26-A94C-11d6-8540-A5E62932711D}"));
if (kClsid == NULL)
return E_FAIL;
@@ -122,7 +122,7 @@ STDAPI DllRegisterServer()
if ( RegSetValueA(kClsid, "ProgID", REG_SZ, str3, sizeof(str3)))
return E_FAIL;
- HRegKey kInprocServer(kClsid, "InprocServer32");
+ HRegKey kInprocServer(kClsid, _T("InprocServer32"));
if (kInprocServer == NULL)
return E_FAIL;
@@ -142,7 +142,7 @@ STDAPI DllRegisterServer()
//////////////////////////////////////////////////////////////////////////////////////
- HRegKey k2(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Approved");
+ HRegKey k2(HKEY_LOCAL_MACHINE, _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Approved"));
if (k2 == NULL)
return E_FAIL;
if ( RegSetValueExA(k2, str2, 0, REG_SZ, (PBYTE)str1, str1len))