Merge pull request #3254 from offhub/fix003

Update OptionsAdvanced.cpp
This commit is contained in:
DavidXanatos 2023-08-28 08:09:31 +02:00 committed by GitHub
commit 7a28f3fa26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -156,8 +156,8 @@ void COptionsWindow::LoadAdvanced()
int Count = 0; int Count = 0;
foreach(const QString & Key, InjectDlls.keys()) { foreach(const QString & Key, InjectDlls.keys()) {
QStringList List; QStringList List;
if (Key == "x64") List = InjectDll; if (Key == "x64") List = InjectDll64;
else if (Key == "x86") List = InjectDll64; else if (Key == "x86") List = InjectDll;
#ifdef _M_ARM64 #ifdef _M_ARM64
else if (Key == "a64") List = InjectDllARM64; else if (Key == "a64") List = InjectDllARM64;
#endif #endif
@ -346,8 +346,8 @@ void COptionsWindow::SaveAdvanced()
QVariantMap InjectDlls = pAddon->Data["injectDlls"].toMap(); QVariantMap InjectDlls = pAddon->Data["injectDlls"].toMap();
foreach(const QString & Key, InjectDlls.keys()) { foreach(const QString & Key, InjectDlls.keys()) {
QStringList* pList; QStringList* pList;
if (Key == "x64") pList = &InjectDll; if (Key == "x64") pList = &InjectDll64;
else if (Key == "x86") pList = &InjectDll64; else if (Key == "x86") pList = &InjectDll;
#ifdef _M_ARM64 #ifdef _M_ARM64
else if (Key == "a64") pList = &InjectDllARM64; else if (Key == "a64") pList = &InjectDllARM64;
#endif #endif