mirror of
https://github.com/reactos/reactos.git
synced 2026-06-05 11:12:56 +08: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user