mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 08:27:24 -06:00
Don't use old style casts
This commit is contained in:
@@ -136,7 +136,7 @@ namespace
|
|||||||
::RegQueryValueExW(handle, nameWStr.c_str(), NULL, &type, NULL, &cbData);
|
::RegQueryValueExW(handle, nameWStr.c_str(), NULL, &type, NULL, &cbData);
|
||||||
DWORD cBuffer = (cbData / sizeof(WCHAR)) + 1;
|
DWORD cBuffer = (cbData / sizeof(WCHAR)) + 1;
|
||||||
LPWSTR lpData = new WCHAR[cBuffer];
|
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;
|
QString result;
|
||||||
if (res == ERROR_SUCCESS)
|
if (res == ERROR_SUCCESS)
|
||||||
|
|||||||
Reference in New Issue
Block a user