ntdll/tests: Retrieve the actual segment registers for RtlWow64GetThreadSelectorEntry test.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-07-02 09:59:30 +02:00
parent 5cebefc24f
commit c6919423a8
1 changed files with 5 additions and 0 deletions

View File

@ -431,8 +431,13 @@ static void test_selectors(void)
{
/* hardcoded values */
context.SegCs = 0x23;
#ifdef __x86_64__
__asm__( "movw %%fs,%0" : "=m" (context.SegFs) );
__asm__( "movw %%ss,%0" : "=m" (context.SegSs) );
#else
context.SegSs = 0x2b;
context.SegFs = 0x53;
#endif
}
#define GET_ENTRY(info,size,ret) \
pRtlWow64GetThreadSelectorEntry( GetCurrentThread(), info, size, ret )