From 19231982b2f374aed286f4697aebd3fb9fda05d8 Mon Sep 17 00:00:00 2001 From: Javier Date: Mon, 11 Apr 2022 04:36:49 +0200 Subject: add new virtualbox shared folders client --- mousetsr.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'mousetsr.c') diff --git a/mousetsr.c b/mousetsr.c index fed2c9b..ca48f13 100644 --- a/mousetsr.c +++ b/mousetsr.c @@ -1448,20 +1448,14 @@ static LPTSRDATA int33_get_tsr_data(void); __value [es di] \ __modify [ax] -static LPTSRDATA local_get_tsr_data(void); -#pragma aux local_get_tsr_data = \ - "mov ax, cs" \ - "mov es, ax" \ - "mov di, offset data" \ - __value [es di] \ - __modify [ax] - LPTSRDATA __far get_tsr_data(bool installed) { if (installed) { return int33_get_tsr_data(); } else { - return local_get_tsr_data(); + // Get the TSR data of this instance, not the one currently installed + // This is as simple as getting the data from this segment + return MK_FP(get_cs(), FP_OFF(&data)); } } -- cgit v1.2.3