summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/Locale.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Quotes/src/Locale.cpp')
-rw-r--r--plugins/Quotes/src/Locale.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Quotes/src/Locale.cpp b/plugins/Quotes/src/Locale.cpp
index 07c9f1a105..ae79f71eb6 100644
--- a/plugins/Quotes/src/Locale.cpp
+++ b/plugins/Quotes/src/Locale.cpp
@@ -16,7 +16,7 @@ tstring get_int_registry_value(LPCTSTR pszValueName)
DWORD dwSize = 0;
lResult = ::RegQueryValueEx(hKey, pszValueName, nullptr, &dwType, nullptr, &dwSize);
if ((ERROR_SUCCESS == lResult) && ((REG_SZ == dwType) || (REG_EXPAND_SZ == dwType))) {
- std::vector<TCHAR> aBuffer(dwSize);
+ std::vector<wchar_t> aBuffer(dwSize);
lResult = ::RegQueryValueEx(hKey, pszValueName, nullptr, nullptr, reinterpret_cast<LPBYTE>(&*aBuffer.begin()), &dwSize);
if (ERROR_SUCCESS == lResult)
std::copy(aBuffer.begin(), aBuffer.end(), std::back_inserter(sResult));