mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 08:27:24 -06:00
Fix heap corruption. Closes #2342.
Manual backporting of commit b45eb28099 (master).
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user