mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
Fix heap corruption. Closes #2342.
Manual backporting of commit b45eb28099
(master).
This commit is contained in:
parent
aecb51c42b
commit
1ae49d1743
1 changed files with 1 additions and 1 deletions
|
@ -1419,7 +1419,7 @@ private:
|
||||||
delete[] lpValueName;
|
delete[] lpValueName;
|
||||||
|
|
||||||
if (res == ERROR_SUCCESS) {
|
if (res == ERROR_SUCCESS) {
|
||||||
lpData[cBuffer] = 0;
|
lpData[cBuffer - 1] = 0;
|
||||||
result = QString::fromWCharArray(lpData);
|
result = QString::fromWCharArray(lpData);
|
||||||
}
|
}
|
||||||
delete[] lpData;
|
delete[] lpData;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue