Fix heap corruption. Closes #2342.

Manual backporting of commit b45eb28099 (master).
This commit is contained in:
sledgehammer999 2015-02-02 01:21:48 +02:00
parent aecb51c42b
commit 1ae49d1743

View File

@ -1419,7 +1419,7 @@ private:
delete[] lpValueName;
if (res == ERROR_SUCCESS) {
lpData[cBuffer] = 0;
lpData[cBuffer - 1] = 0;
result = QString::fromWCharArray(lpData);
}
delete[] lpData;