aboutsummaryrefslogtreecommitdiff
path: root/mousew16.c
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2026-11-30 12:53:58 +0100
committerJavier <dev.git@javispedro.com>2026-11-30 12:53:58 +0100
commit9f46f39f48d3acf4806473b331b654111a6e2084 (patch)
tree047142a32fda5820ff3f00851903afe33ec3359c /mousew16.c
parent2938a67c400930d2d5e6f23bb8e13b1ec3b99000 (diff)
downloadvbados-9f46f39f48d3acf4806473b331b654111a6e2084.tar.gz
vbados-9f46f39f48d3acf4806473b331b654111a6e2084.zip
mousew16: found a way to use the same binary in both 2.x and >3.x
What was missing is to use mark.exe (same as the MEMORY option in wlink) to mark the 2.0 executable as being "protected mode compatible". Thanks to Pietrek's Windows Internals book and their description of what LoadModule is doing.
Diffstat (limited to 'mousew16.c')
-rw-r--r--mousew16.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mousew16.c b/mousew16.c
index d617663..5a1770e 100644
--- a/mousew16.c
+++ b/mousew16.c
@@ -370,7 +370,7 @@ static BOOL send_native_wheel_msgs(HWND hWnd, DWORD time, POINT cursor, int z, B
}
/** GetMsgProc hook, called for every message before being returned by GetMessage. */
-LRESULT CALLBACK WheelHookProc(int code, WPARAM wParam, LPARAM lParam)
+LRESULT CALLBACK __loadds WheelHookProc(int code, WPARAM wParam, LPARAM lParam)
{
if (code >= 0) {
// TODO Unclear if on win9x PeekMessage will also call this hook