wand ehanced - #246
Open
macdeeakmal010-jpg wants to merge 2 commits into
Open
Conversation
… Wand 12.50+ Newer Wand builds (observed on 12.50.0-beta00) set DependentLoadFlags = LOAD_LIBRARY_SEARCH_SYSTEM32 (0x0800) in the PE Load Config directory. That flag forces every statically-imported DLL, including version.dll, to resolve from %SystemRoot%\System32 only, so the proxy version.dll dropped next to Wand.exe is never loaded. disable_asar_integrity() therefore never runs, the Electron ASAR-integrity fuse stays enabled, and the patched app.asar is rejected, making Wand exit immediately after a "successful" patch. AttachProxyDll() now clears the bit in Wand.exe (DependentLoadFlags WORD at offset 0x4E in IMAGE_LOAD_CONFIG_DIRECTORY) after writing the proxy. The change is idempotent and a no-op on older builds that do not set the flag. Verified on 12.50.0-beta00 x64: before = instant exit; after = Wand launches, proxy VERSION.dll loads from the app directory, fuse[4] flips 0x31 -> 0x72 in memory, and the patched app.asar is accepted.
fix: clear LOAD_LIBRARY_SEARCH_SYSTEM32 so version.dll proxy loads on Adding fix for 12.50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.