setup int 23 to point into the rootpsp. Fixes What.exe
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2384
This commit is contained in:
parent
3e2ba6a557
commit
2eb59a43e3
1 changed files with 4 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: shell.cpp,v 1.65 2005-11-21 07:21:28 qbix79 Exp $ */
|
||||
/* $Id: shell.cpp,v 1.66 2005-11-21 18:32:38 qbix79 Exp $ */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
|
@ -475,6 +475,9 @@ void SHELL_Init() {
|
|||
real_writed(psp_seg+16+1,1,real_readd(0,0x24*4));
|
||||
real_writed(0,0x24*4,((Bit32u)psp_seg<<16) | ((16+1)<<4));
|
||||
|
||||
/* Set up int 23 to "int 20" in the psp. Fixes what.exe */
|
||||
real_writed(0,0x23*4,((Bit32u)psp_seg<<16));
|
||||
|
||||
/* Setup MCB and the environment */
|
||||
DOS_MCB envmcb((Bit16u)(env_seg-1));
|
||||
envmcb.SetPSPSeg(psp_seg);
|
||||
|
|
Loading…
Add table
Reference in a new issue