Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit 10db676

Browse files
committed
nicer format for addresses in errors
1 parent f135c33 commit 10db676

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/main/ealink_exe_patches.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ namespace EALinkExePatches
1919
{
2020
didWarnAboutMissingAlready = true;
2121
MessageBoxA(nullptr, ("Error in Origin::Services::readSetting: one of the functions could not have been resolved, we may crash\n"
22-
"\nQVariant_QVariant_from_bool: " + std::to_string(uintptr_t(QVariant_QVariant_from_bool))
23-
+ "\nSETTING_MigrationDisabled: " + std::to_string(uintptr_t(SETTING_MigrationDisabled))
22+
"\nQVariant_QVariant_from_bool: " + std::format("{:#010x}", uintptr_t(QVariant_QVariant_from_bool))
23+
+ "\nSETTING_MigrationDisabled: " + std::format("{:#010x}", uintptr_t(SETTING_MigrationDisabled))
2424
).c_str(),
2525
ERROR_MSGBOX_CAPTION, MB_ICONERROR);
2626
}

src/main/origin_client_dll_patches.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ void* __stdcall findUserMigrationTimePeriod_hook(void* a1)
1212
static auto QJsonObject_toVariantMap = GetExport<void*(__thiscall*)(void*, void*)>(Qt5Core, "?toVariantMap@QJsonObject@@QBE?AV?$QMap@VQString@@VQVariant@@@@XZ");
1313
if (!QJsonObject_QJsonObject || !QJsonObject_QJsonObject_destruct || !QJsonObject_toVariantMap) [[unlikely]]
1414
MessageBoxA(nullptr, ("Error in Origin::Client::JsInterface::ClientSettingsProxy::findUserMigrationTimePeriod: one of the functions could not have been resolved, we will crash\n"
15-
"\nQJsonObject_QJsonObjectl: " + std::to_string(uintptr_t(QJsonObject_QJsonObject))
16-
+ "\nQJsonObject_QJsonObject_destruct: " + std::to_string(uintptr_t(QJsonObject_QJsonObject_destruct))
17-
+ "\nQJsonObject_toVariantMap: " + std::to_string(uintptr_t(QJsonObject_toVariantMap))
15+
"\nQJsonObject_QJsonObjectl: " + std::format("{:#010x}", uintptr_t(QJsonObject_QJsonObject))
16+
+ "\nQJsonObject_QJsonObject_destruct: " + std::format("{:#010x}", uintptr_t(QJsonObject_QJsonObject_destruct))
17+
+ "\nQJsonObject_toVariantMap: " + std::format("{:#010x}", uintptr_t(QJsonObject_toVariantMap))
1818
).c_str(),
1919
ERROR_MSGBOX_CAPTION, MB_ICONERROR);
2020

src/main/origin_client_service_exe_patches.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ namespace OriginClientServiceExePatches
1515
SETTING_MigrationDisabled = GetExport<void*>(OriginClientServiceExe, "?SETTING_MigrationDisabled@Services@Origin@@3VSetting@12@B");
1616
if (!QVariant_QVariant_from_bool || !SETTING_MigrationDisabled) [[unlikely]]
1717
MessageBoxA(nullptr, ("Error in Origin::Services::readSetting: one of the functions could not have been resolved, we will crash\n"
18-
"\nQVariant_QVariant_from_bool: " + std::to_string(uintptr_t(QVariant_QVariant_from_bool))
19-
+ "\nSETTING_MigrationDisabled: " + std::to_string(uintptr_t(SETTING_MigrationDisabled))
18+
"\nQVariant_QVariant_from_bool: " + std::format("{:#010x}", uintptr_t(QVariant_QVariant_from_bool))
19+
+ "\nSETTING_MigrationDisabled: " + std::format("{:#010x}", uintptr_t(SETTING_MigrationDisabled))
2020
).c_str(),
2121
ERROR_MSGBOX_CAPTION, MB_ICONERROR);
2222

0 commit comments

Comments
 (0)