From 9266f20959d58859070111cafe2a054de906fbb0 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 5 Feb 2015 18:32:01 +0000 Subject: ShlExt: -translation fixes -Minor bugfixes git-svn-id: http://svn.miranda-ng.org/main/trunk@12010 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ShellExt/src/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/ShellExt/src/main.cpp') 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)) -- cgit v1.2.3