http://bugs.winehq.org/show_bug.cgi?id=31438
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #145 from Anastasius Focht focht@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