Repository navigation
Reuse the official Gameforge installation id instead of minting one - #29
Conversation
GfStub seeded a random InstallationId under the 32-bit machine key when it was missing. Unelevated, that write lands in the user's VirtualStore, and the official Gameforge client (also 32-bit) reads it ahead of its own per-user id, so it silently switched to the stub's id and re-registered the installation. Seed the machine key with the official client's id when one exists and only mint a new id on machines without the Gameforge client. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Problem
GfStubseedsInstallationIdunderHKLM\SOFTWARE\WOW6432Node\Gameforge4d\GameforgeClient\MainAppwith a fresh GUID when the value is missing. The stub runs unelevated inside the 32-bit client, so Windows virtualizes that write intoHKCU\Software\Classes\VirtualStore\.... The official Gameforge client is also 32-bit and reads the machine key (through the same VirtualStore) before its own per-userHKCU\Software\Gameforge4d\GameforgeClient\MainAppid. After running a stubbed client once, the official client quietly switched to the stub's GUID and Gameforge registered it as a new installation; tools still sending the original id then gotNot allowed to create codefromauth/thin/codes.Fix
When the machine key has no id, copy the official client's per-user id into it and only mint a new GUID when no Gameforge client id exists.
Checks
🤖 Generated with Claude Code
Summary by CodeRabbit