Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,6 @@ void HTTPManager::Initialize()
{
CHECK_MAIN_THREAD;

// Initialize libcurl global state
curl_global_init(CURL_GLOBAL_DEFAULT);

m_pCurl = curl_multi_init();
m_bProxyEnabled = DeterminePlatformProxySettings();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,11 @@ void NGMP_OnlineServicesManager::Tick()

void NGMP_OnlineServicesManager::InitSentry()
{
// Initialize libcurl global state here, before any plugins (e.g. EasyAntiCheat) are loaded.
// This ensures libcurl's internal mutexes are fully initialized before the EAC plugin
// attempts to use them, preventing an access violation in mtx_do_lock on null mutex state.
curl_global_init(CURL_GLOBAL_DEFAULT);

#if !_DEBUG
std::string strDumpPath = std::format("{}/GeneralsOnlineCrashData/", TheGlobalData->getPath_UserData().str());
if (!std::filesystem::exists(strDumpPath))
Expand Down
Loading