[Bug 31438] [EA Origin]Unable to download game since the new version

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Aug 10 07:34:22 CDT 2014


http://bugs.winehq.org/show_bug.cgi?id=31438

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |focht at gmx.net

--- Comment #145 from Anastasius Focht <focht at gmx.net> ---
Hello Matteo

--- quote ---
Maybe I can write a small python script to apply the patch, since I don't think
diff/patch are the correct tools to use when working with binary files.
--- quote ---

there is no need of (ab)using existing or writing fancy tools for that task.
A simple one liner can achieve the same.

This is what I provide as workaround in bugs that require binary patching of
executables:

--- snip ---
$ printf '\xEB\x22' | dd of=foo.exe bs=1 seek=630921 count=2 conv=notrunc
--- snip ---

The example patches 2 bytes to 0xEB,0x22 (hex) at byte offset 630921 (decimal!)
in 'foo.exe'

In your case the command line would be:

--- snip ---
$ printf '\x01' | dd of=Qt5Network.bin bs=1 seek=518625 count=1 conv=notrunc
--- snip ---

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list