Fixed multiple instances opening at once

This commit is contained in:
thezephyrsong
2026-06-17 00:41:40 +10:00
parent 4cfafffd4e
commit 348692ddc1
1781 changed files with 263100 additions and 6 deletions
+4 -2
View File
@@ -480,8 +480,10 @@ void Addon::unpackSubfolders(){
link.replace("/","\\");
QString target = "./"+m_name+"/"+subfn;
target.replace("/","\\");
wchar_t link_w[link.size() +1];
wchar_t target_w[target.size() +1];
std::vector<wchar_t> link_buf(link.size() + 1);
std::vector<wchar_t> target_buf(target.size() + 1);
wchar_t* link_w = link_buf.data();
wchar_t* target_w = target_buf.data();
int pos = link.toWCharArray(link_w);
link_w[pos] = '\0';
pos = target.toWCharArray(target_w);