Fix all the windows crashes
This commit is contained in:
parent
7e4f51acb8
commit
c625ac229d
@ -176,7 +176,7 @@ bool Copy(QIODevice* source, QIODevice* destination) {
|
|||||||
|
|
||||||
ScopedWCharArray::ScopedWCharArray(const QString& str)
|
ScopedWCharArray::ScopedWCharArray(const QString& str)
|
||||||
: chars_(str.length()),
|
: chars_(str.length()),
|
||||||
data_(new wchar_t(chars_ + 1))
|
data_(new wchar_t[chars_ + 1])
|
||||||
{
|
{
|
||||||
str.toWCharArray(data_.get());
|
str.toWCharArray(data_.get());
|
||||||
data_[chars_] = '\0';
|
data_[chars_] = '\0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user