registry: classify libHttpClient.GDK.dll HRESULT imports (RT-UNIMPL-LIBHTTPCLIENT-CLASSIFY) #1465
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1465"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by piyonchu on 2026-11-25T00:47:11Z.
Claimed in the coordination issue as: RT-UNIMPL-LIBHTTPCLIENT-CLASSIFY
Summary
game_scarlett_master.exeimport and call-site analysis show 38libHttpClient.GDK.dllimports (53direct call/jump sites), withHCInitialize,HCCleanupAsync, andHCHttpCallCreatecallers immediately testingtest eax, eax; js ...(HRESULT < 0). When bundledlibHttpClient.GDK.dllis absent (orgta6rt --dry-runis run on the executable alone),classify_import()previously returnedReturnClass::Other(0/S_OK) for all 38 imports (unimplemented by return policy: hresult=0 other=72), leaving out-parameters untouched underLEONIDA_UNIMPLEMENTED=fail.libHttpClientHRESULT-returning functions underlibhttpclient.gdk.dllinruntime/shims/registry.cpp(HCInitialize,HCCleanupAsync,HCSettingsGetTraceLevel,HCHttpCallCreate,HCHttpCallCloseHandle,HCHttpCallPerformAsync,HCHttpCallGetRequestUrl,HCHttpCallSetTracing,HCHttpCallRequest*, andHCHttpCallResponse*), while keepingHCHttpCallDuplicateHandle(returnsHCCallHandle),HCTraceImplMessage(void), andHCTraceSetEtwEnabled(void) asReturnClass::Other.libhttpclient.gdk.dllReturnClass::HResult/ReturnClass::Otherrules inruntime/test/unimplemented_policy_test.cpp.Verification
RelWithDebInfo, Windows 11, CPU-only build without Vulkan headers) and ranctest -C RelWithDebInfo -R "^unimplemented_policy$" --output-on-failure: 1/1 passed (unimplemented_policy).gta6rt.exe --dry-runagainst a localgame_scarlett_master.exenow reportsunimplemented by return policy: hresult=35 other=37(up fromhresult=0 other=72).python -I tests/test_build_runtime_fallback.pyandpython -I tests/test_text_write_line_endings.py(run below before commit).git diff --check: clean.AI-assisted; synthetic tests +
--dry-runimport check on Windows 11 (CPU-only build; no game files included).Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-25T07:24:10Z.
Independent verification (CPU-only): built
unimplemented_policy_test+console_registry_teston native Windows and ranctest -R "unimplemented_policy|console_registry|file_system"— 3/3 pass. Confirmedclassify_importlowercases the DLL name solibHttpClient.GDK.dllmatches, and function names compare against canonical GDK spellings consistently with existing rules.HCHttpCallDuplicateHandle/HCTraceImplMessage/HCTraceSetEtwEnabledcorrectly stayOther. AI-assisted verification.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T20:18:41Z.
Red/green: On main unimplemented_policy_test fails because HCInitialize and HCCleanupAsync from libHttpClient.GDK.dll are not classified as HRESULT, and with the PR ctest -R ^unimplemented_policy$ passes on Windows 11 at OreoFR's (RTX 4070).
Independent tester (OreoFR, RTX 4070, Windows 11): PR head merged with the other PRs of its batch on main
c1ecf04ed, full ctest run (485 tests, tests that launch the game excluded): no new failure compared with main.Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:51:34Z.
Verified by OreoFR
c1ecf04ed+ PR head3e551e5cf; green run in a merge package of 12 PRs, no new ctest failure vs mainctest -R ^unimplemented_policy$AI-assisted (Claude Code, Claude Opus 5.5).