From 196d204ccf7cb2d997fdc2f13741eab7f3f9f35b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Strohh=C3=A4cker?= Date: Fri, 4 Aug 2006 17:30:46 +0000 Subject: [PATCH] adapt vcpi interface offset to callback size Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2681 --- src/ints/ems.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ints/ems.cpp b/src/ints/ems.cpp index 5cb157aa..5f9d09d2 100644 --- a/src/ints/ems.cpp +++ b/src/ints/ems.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: ems.cpp,v 1.52 2006-07-24 19:06:55 c2woody Exp $ */ +/* $Id: ems.cpp,v 1.53 2006-08-04 17:30:46 c2woody Exp $ */ #include #include @@ -1193,7 +1193,7 @@ public: /* Install a callback that handles VCPI-requests in protected mode requests */ call_vcpi.Install(&VCPI_PM_Handler,CB_IRETD,"VCPI PM"); - vcpi.pm_interface=(call_vcpi.Get_callback())<<4; + vcpi.pm_interface=(call_vcpi.Get_callback())*CB_SIZE; /* Initialize private data area and set up descriptor tables */ SetupVCPI();