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
d1e90e15
Commit
d1e90e15
authored
May 13, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Don't skip all tests if a function is missing.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e7af1f92
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
info.c
dlls/ntdll/tests/info.c
+3
-13
No files found.
dlls/ntdll/tests/info.c
View file @
d1e90e15
...
...
@@ -68,7 +68,6 @@ static inline DWORD_PTR get_affinity_mask(DWORD num_cpus)
p ## func = (void*)GetProcAddress(hntdll, #func); \
if(!p ## func) { \
trace("GetProcAddress(%s) failed\n", #func); \
return FALSE; \
} \
} while(0)
...
...
@@ -77,13 +76,14 @@ static inline DWORD_PTR get_affinity_mask(DWORD num_cpus)
#define FIRM 0x4649524D
#define RSMB 0x52534D42
static
BOOL
InitFunctionPtrs
(
void
)
static
void
InitFunctionPtrs
(
void
)
{
/* All needed functions are NT based, so using GetModuleHandle is a good check */
HMODULE
hntdll
=
GetModuleHandleA
(
"ntdll"
);
HMODULE
hkernel32
=
GetModuleHandleA
(
"kernel32"
);
NTDLL_GET_PROC
(
NtQuerySystemInformation
);
NTDLL_GET_PROC
(
NtQuerySystemInformationEx
);
NTDLL_GET_PROC
(
NtSetSystemInformation
);
NTDLL_GET_PROC
(
RtlGetNativeSystemInformation
);
NTDLL_GET_PROC
(
RtlWow64GetCpuAreaInfo
);
...
...
@@ -105,24 +105,14 @@ static BOOL InitFunctionPtrs(void)
NTDLL_GET_PROC
(
NtQueryObject
);
NTDLL_GET_PROC
(
NtCreateDebugObject
);
NTDLL_GET_PROC
(
NtSetInformationDebugObject
);
NTDLL_GET_PROC
(
NtGetCurrentProcessorNumber
);
NTDLL_GET_PROC
(
DbgUiConvertStateChangeStructure
);
/* not present before XP */
pNtGetCurrentProcessorNumber
=
(
void
*
)
GetProcAddress
(
hntdll
,
"NtGetCurrentProcessorNumber"
);
pIsWow64Process
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"IsWow64Process"
);
if
(
!
pIsWow64Process
||
!
pIsWow64Process
(
GetCurrentProcess
(),
&
is_wow64
))
is_wow64
=
FALSE
;
pGetSystemDEPPolicy
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"GetSystemDEPPolicy"
);
/* starting with Win7 */
pNtQuerySystemInformationEx
=
(
void
*
)
GetProcAddress
(
hntdll
,
"NtQuerySystemInformationEx"
);
if
(
!
pNtQuerySystemInformationEx
)
win_skip
(
"NtQuerySystemInformationEx() is not supported, some tests will be skipped.
\n
"
);
pGetLogicalProcessorInformationEx
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"GetLogicalProcessorInformationEx"
);
return
TRUE
;
}
static
void
test_query_basic
(
void
)
...
...
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