diff --git a/src/base/utils/foreignapps.cpp b/src/base/utils/foreignapps.cpp index 2af79ca15..6214c4bc1 100644 --- a/src/base/utils/foreignapps.cpp +++ b/src/base/utils/foreignapps.cpp @@ -136,7 +136,7 @@ namespace ::RegQueryValueExW(handle, nameWStr.c_str(), NULL, &type, NULL, &cbData); DWORD cBuffer = (cbData / sizeof(WCHAR)) + 1; LPWSTR lpData = new WCHAR[cBuffer]; - LONG res = ::RegQueryValueExW(handle, nameWStr.c_str(), NULL, &type, (LPBYTE)lpData, &cbData); + LONG res = ::RegQueryValueExW(handle, nameWStr.c_str(), NULL, &type, reinterpret_cast(lpData), &cbData); QString result; if (res == ERROR_SUCCESS)