mirror of
https://github.com/c0re100/qBittorrent-Enhanced-Edition.git
synced 2025-01-09 04:18:39 +08:00
Fix heap corruption. Closes #2342.
Manual backporting of commit b45eb28099
(master).
This commit is contained in:
parent
aecb51c42b
commit
1ae49d1743
@ -1419,7 +1419,7 @@ private:
|
||||
delete[] lpValueName;
|
||||
|
||||
if (res == ERROR_SUCCESS) {
|
||||
lpData[cBuffer] = 0;
|
||||
lpData[cBuffer - 1] = 0;
|
||||
result = QString::fromWCharArray(lpData);
|
||||
}
|
||||
delete[] lpData;
|
||||
|
Loading…
Reference in New Issue
Block a user