aboutsummaryrefslogtreecommitdiff
path: root/mousetsr.c
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-11 04:36:49 +0200
committerJavier <dev.git@javispedro.com>2022-04-11 04:36:49 +0200
commit19231982b2f374aed286f4697aebd3fb9fda05d8 (patch)
tree1922eaf34af3d904ce0f75c0e812e8da8e0d38d4 /mousetsr.c
parent970f90228a6978712c28529437721caffec76202 (diff)
downloadvbados-19231982b2f374aed286f4697aebd3fb9fda05d8.tar.gz
vbados-19231982b2f374aed286f4697aebd3fb9fda05d8.zip
add new virtualbox shared folders client
Diffstat (limited to 'mousetsr.c')
-rw-r--r--mousetsr.c12
1 files changed, 3 insertions, 9 deletions
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));
}
}