Fixed bug in SwitchStackTo.

This commit is contained in:
Alexandre Julliard 1998-10-25 08:05:46 +00:00
parent d054b4123c
commit 75796ea8fe
1 changed files with 2 additions and 2 deletions

View File

@ -1254,8 +1254,8 @@ void WINAPI SwitchStackTo( WORD seg, WORD ptr, WORD top )
oldFrame = THREAD_STACK16( pTask->thdb ); oldFrame = THREAD_STACK16( pTask->thdb );
/* pop frame + args and push bp */ /* pop frame + args and push bp */
pData->old_ss_sp = pTask->thdb->cur_stack - sizeof(STACK16FRAME) pData->old_ss_sp = pTask->thdb->cur_stack + sizeof(STACK16FRAME)
- 2 * sizeof(WORD); + 2 * sizeof(WORD);
*(WORD *)PTR_SEG_TO_LIN(pData->old_ss_sp) = oldFrame->bp; *(WORD *)PTR_SEG_TO_LIN(pData->old_ss_sp) = oldFrame->bp;
pData->stacktop = top; pData->stacktop = top;
pData->stackmin = ptr; pData->stackmin = ptr;