user32: Make more functions hot-patchable for Steam
Krzysztof Nowicki
krissn at op.pl
Tue Jun 14 15:24:31 CDT 2011
Steam is known to hot-patch some Win32 API entrypoints. A number of them
have already been declared as hot-patchable using the ms_hook_prologue
attribute.
When trying to run Mount & Blade Warband I encountered more functions
that were hot-patched. Patching user32.GetSysColor was enough to get the
game working, however there was more.
The patch below is a result of a binary comparison between the original
user32.dll code and a memory dump done after the M&B executable started.
The comparison showed a number of functions that have been patched, but
were not declared as hot-patchable.
I hope to also review other DLLs in the same way.
http://bugs.winehq.org/show_bug.cgi?id=23207
---
dlls/user32/scroll.c | 18 ++++++++++--------
dlls/user32/sysparams.c | 4 ++--
2 files changed, 12 insertions(+), 10 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-user32-Make-more-functions-hot-patchable-for-Steam.patch
Type: text/x-patch
Size: 4316 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110614/1268983b/attachment-0001.bin>
More information about the wine-patches
mailing list