Get descriptor should return correct segment limit.

This commit is contained in:
David Hammerton 2002-10-15 02:18:24 +00:00 committed by Alexandre Julliard
parent 3bdfc9f662
commit 14e81e8fb3
1 changed files with 1 additions and 0 deletions

View File

@ -384,6 +384,7 @@ void WINAPI INT_Int31Handler( CONTEXT86 *context )
TRACE("get descriptor (0x%04x)\n",BX_reg(context));
{
LDT_ENTRY entry;
wine_ldt_get_entry( LOWORD(context->Ebx), &entry);
wine_ldt_set_base( &entry, (void*)W32S_WINE2APP(wine_ldt_get_base(&entry)) );
/* FIXME: should use ES:EDI for 32-bit clients */
*(LDT_ENTRY *)MapSL( MAKESEGPTR( context->SegEs, LOWORD(context->Edi) )) = entry;