From d27caefd5fb1465c6641a4555f66d2d1b64ff804 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 30 Aug 2026 23:02:11 +0200 Subject: fix out of memory error in windows 3.0 by fixing data segment --- mousew16.c | 2 +- mousew16.lnk | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mousew16.c b/mousew16.c index 2d539e3..85ffac4 100644 --- a/mousew16.c +++ b/mousew16.c @@ -288,7 +288,7 @@ static void send_wheel_movement(int8_t z, BOOL horizontal) #endif /* USE_WHEEL */ /** Called by the int33 mouse driver. */ -static void FAR int33_mouse_callback(uint16_t events, uint16_t buttons, int16_t x, int16_t y, int16_t delta_x, int16_t delta_y) +void FAR int33_mouse_callback(uint16_t events, uint16_t buttons, int16_t x, int16_t y, int16_t delta_x, int16_t delta_y) #pragma aux (INT33_CB) int33_mouse_callback { int status = 0; diff --git a/mousew16.lnk b/mousew16.lnk index b8a068c..ad6ac85 100644 --- a/mousew16.lnk +++ b/mousew16.lnk @@ -1,9 +1,13 @@ system windows_dll + option map=mousew16.map option modname=MOUSE # This is necessary; USER.EXE imports mouse functions using this module name option description 'VBMouse int33 absolute mouse driver' -segment CALLBACKS fixed shared # We need a non-moveable segment to store our callback routines +option heapsize=128 # We don't need localheap but windows_dll sets 1K by default + +segment CALLBACKS fixed shared # We need a non-moveable segment to store our callback routines +segment CLASS DATA fixed shared # Likewise fix the data segment, too cumbersome if not export Inquire.1 export Enable.2 -- cgit v1.2.3