Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1663454c
Commit
1663454c
authored
Jul 11, 2023
by
Sven Baars
Committed by
Alexandre Julliard
Jul 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Update some more todos that succeed with the new wow64 architecture.
parent
06b958d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
info.c
dlls/ntdll/tests/info.c
+15
-5
No files found.
dlls/ntdll/tests/info.c
View file @
1663454c
...
...
@@ -37,7 +37,6 @@ static NTSTATUS (WINAPI * pNtMapViewOfSection)(HANDLE,HANDLE,PVOID*,ULONG_PTR,SI
static
NTSTATUS
(
WINAPI
*
pNtUnmapViewOfSection
)(
HANDLE
,
PVOID
);
static
NTSTATUS
(
WINAPI
*
pNtClose
)(
HANDLE
);
static
ULONG
(
WINAPI
*
pNtGetCurrentProcessorNumber
)(
void
);
static
BOOL
(
WINAPI
*
pIsWow64Process
)(
HANDLE
,
PBOOL
);
static
BOOL
(
WINAPI
*
pGetLogicalProcessorInformationEx
)(
LOGICAL_PROCESSOR_RELATIONSHIP
,
SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX
*
,
DWORD
*
);
static
DEP_SYSTEM_POLICY_TYPE
(
WINAPI
*
pGetSystemDEPPolicy
)(
void
);
static
NTSTATUS
(
WINAPI
*
pNtOpenThread
)(
HANDLE
*
,
ACCESS_MASK
,
const
OBJECT_ATTRIBUTES
*
,
const
CLIENT_ID
*
);
...
...
@@ -49,6 +48,7 @@ static HANDLE (WINAPI * pDbgUiGetThreadDebugObject)(void);
static
void
(
WINAPI
*
pDbgUiSetThreadDebugObject
)(
HANDLE
);
static
BOOL
is_wow64
;
static
BOOL
old_wow64
;
/* one_before_last_pid is used to be able to compare values of a still running process
with the output of the test_query_process_times and test_query_process_handlecount tests.
...
...
@@ -102,8 +102,18 @@ static void InitFunctionPtrs(void)
NTDLL_GET_PROC
(
DbgUiGetThreadDebugObject
);
NTDLL_GET_PROC
(
DbgUiSetThreadDebugObject
);
pIsWow64Process
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"IsWow64Process"
);
if
(
!
pIsWow64Process
||
!
pIsWow64Process
(
GetCurrentProcess
(),
&
is_wow64
))
is_wow64
=
FALSE
;
if
(
!
IsWow64Process
(
GetCurrentProcess
(),
&
is_wow64
))
is_wow64
=
FALSE
;
if
(
is_wow64
)
{
TEB64
*
teb64
=
ULongToPtr
(
NtCurrentTeb
()
->
GdiBatchCount
);
if
(
teb64
)
{
PEB64
*
peb64
=
ULongToPtr
(
teb64
->
Peb
);
old_wow64
=
!
peb64
->
LdrData
;
}
}
pGetSystemDEPPolicy
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"GetSystemDEPPolicy"
);
pGetLogicalProcessorInformationEx
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"GetLogicalProcessorInformationEx"
);
...
...
@@ -183,7 +193,7 @@ static void test_query_basic(void)
(
void
*
)
sbi
.
HighestUserAddress
,
(
void
*
)
sbi2
.
HighestUserAddress
);
#else
ok
(
sbi
.
HighestUserAddress
==
(
void
*
)
0x7ffeffff
,
"wrong limit %p
\n
"
,
sbi
.
HighestUserAddress
);
todo_wine_if
(
is
_wow64
)
todo_wine_if
(
old
_wow64
)
ok
(
sbi2
.
HighestUserAddress
==
(
is_wow64
?
(
void
*
)
0xfffeffff
:
(
void
*
)
0x7ffeffff
),
"wrong limit %p
\n
"
,
sbi
.
HighestUserAddress
);
#endif
...
...
@@ -206,7 +216,7 @@ static void test_query_basic(void)
broken
(
status
==
STATUS_INVALID_INFO_CLASS
)
||
broken
(
status
==
STATUS_NOT_IMPLEMENTED
),
"failed %lx
\n
"
,
status
);
if
(
!
status
||
status
==
STATUS_INFO_LENGTH_MISMATCH
)
todo_wine_if
(
is
_wow64
)
todo_wine_if
(
old
_wow64
)
ok
(
!
status
==
!
is_wow64
,
"got wrong status %lx wow64 %u
\n
"
,
status
,
is_wow64
);
if
(
!
status
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment