From 8ae3679aa1339ce9abee53adb69902bd6b7513dc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Jul 2016 10:31:04 +0000 Subject: hello, Unix. phase 1: removing _T() git-svn-id: http://svn.miranda-ng.org/main/trunk@17127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AutoRun/src/main.cpp | 8 ++++---- plugins/AutoRun/src/stdafx.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/AutoRun/src') diff --git a/plugins/AutoRun/src/main.cpp b/plugins/AutoRun/src/main.cpp index 97e50e4a1e..8d0a3109eb 100644 --- a/plugins/AutoRun/src/main.cpp +++ b/plugins/AutoRun/src/main.cpp @@ -33,7 +33,7 @@ void GetProfilePath(TCHAR *res, size_t resLen) TCHAR *p = _tcsrchr(dbname, '.'); if (p) *p = 0; - mir_sntprintf(res, resLen, _T("\"%s\" \"/profile:%s\""), exename, dbname); + mir_sntprintf(res, resLen, L"\"%s\" \"/profile:%s\"", exename, dbname); } static void SetAutorun(BOOL autorun) @@ -45,13 +45,13 @@ static void SetAutorun(BOOL autorun) if ( RegCreateKeyEx(ROOT_KEY, SUB_KEY, 0, NULL, 0, KEY_CREATE_SUB_KEY|KEY_SET_VALUE,NULL,&hKey,&dw) == ERROR_SUCCESS) { TCHAR result[MAX_PATH]; GetProfilePath(result, _countof(result)); - RegSetValueEx(hKey, _T("MirandaNG"), 0, REG_SZ, (BYTE*)result, sizeof(TCHAR)*(DWORD)mir_tstrlen(result)); + RegSetValueEx(hKey, L"MirandaNG", 0, REG_SZ, (BYTE*)result, sizeof(TCHAR)*(DWORD)mir_tstrlen(result)); RegCloseKey(hKey); } break; case FALSE: if ( RegOpenKey(ROOT_KEY, SUB_KEY, &hKey) == ERROR_SUCCESS) { - RegDeleteValue(hKey, _T("MirandaNG")); + RegDeleteValue(hKey, L"MirandaNG"); RegCloseKey(hKey); } break; @@ -66,7 +66,7 @@ static BOOL CmpCurrentAndRegistry() TCHAR result[MAX_PATH], dbpath[MAX_PATH]; DWORD dwBufLen = MAX_PATH; - if ( RegQueryValueEx(hKey, _T("MirandaNG"), NULL, NULL, (LPBYTE)dbpath, &dwBufLen) != ERROR_SUCCESS) + if ( RegQueryValueEx(hKey, L"MirandaNG", NULL, NULL, (LPBYTE)dbpath, &dwBufLen) != ERROR_SUCCESS) return FALSE; GetProfilePath(result, _countof(result)); diff --git a/plugins/AutoRun/src/stdafx.h b/plugins/AutoRun/src/stdafx.h index 830c60b4f9..bdf5ae2607 100644 --- a/plugins/AutoRun/src/stdafx.h +++ b/plugins/AutoRun/src/stdafx.h @@ -9,5 +9,5 @@ #include "resource.h" #include "version.h" -#define SUB_KEY _T("Software\\Microsoft\\Windows\\CurrentVersion\\Run") +#define SUB_KEY L"Software\\Microsoft\\Windows\\CurrentVersion\\Run" #define ModuleName LPGEN("Autorun") -- cgit v1.2.3