mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-23 09:47:08 +03:00
Don't use old style casts
This commit is contained in:
parent
dba998fea0
commit
a0a45333f1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue