mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 08:54:40 +00:00
[NTVDM]: DOS: When we create a new PSP, or terminate a TSR, we *must* use the code segment value of the CALLER!! and not the current one (DOS code segment). Should fix a lot of stuff...
svn path=/trunk/; revision=68609
This commit is contained in:
parent
05ef43979f
commit
2abf03735c
|
@ -563,7 +563,7 @@ VOID WINAPI DosInt21h(LPWORD Stack)
|
|||
/* Create New PSP */
|
||||
case 0x26:
|
||||
{
|
||||
DosClonePsp(getDX(), getCS());
|
||||
DosClonePsp(getDX(), Stack[STACK_CS]);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -2096,7 +2096,7 @@ VOID WINAPI DosAbsoluteWrite(LPWORD Stack)
|
|||
|
||||
VOID WINAPI DosInt27h(LPWORD Stack)
|
||||
{
|
||||
DosTerminateProcess(getCS(), 0, (getDX() + 0x0F) >> 4);
|
||||
DosTerminateProcess(Stack[STACK_CS], 0, (getDX() + 0x0F) >> 4);
|
||||
}
|
||||
|
||||
VOID WINAPI DosIdle(LPWORD Stack)
|
||||
|
|
Loading…
Reference in a new issue