ntdll/tests: Retrieve the actual segment registers for RtlWow64GetThreadSelectorEntry test.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5cebefc24f
commit
c6919423a8
|
@ -431,8 +431,13 @@ static void test_selectors(void)
|
||||||
{
|
{
|
||||||
/* hardcoded values */
|
/* hardcoded values */
|
||||||
context.SegCs = 0x23;
|
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.SegSs = 0x2b;
|
||||||
context.SegFs = 0x53;
|
context.SegFs = 0x53;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#define GET_ENTRY(info,size,ret) \
|
#define GET_ENTRY(info,size,ret) \
|
||||||
pRtlWow64GetThreadSelectorEntry( GetCurrentThread(), info, size, ret )
|
pRtlWow64GetThreadSelectorEntry( GetCurrentThread(), info, size, ret )
|
||||||
|
|
Loading…
Reference in New Issue