Browse Source

Don't use old style casts

adaptive-webui-19844
Chocobo1 3 years ago
parent
commit
a0a45333f1
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/base/utils/foreignapps.cpp

2
src/base/utils/foreignapps.cpp

@ -136,7 +136,7 @@ namespace @@ -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<LPBYTE>(lpData), &cbData);
QString result;
if (res == ERROR_SUCCESS)

Loading…
Cancel
Save