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
9783ce36
Commit
9783ce36
authored
Aug 21, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Aug 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Do GetModuleHandle only once and add a few skip's.
parent
12ff6788
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
exception.c
dlls/ntdll/tests/exception.c
+12
-10
No files found.
dlls/ntdll/tests/exception.c
View file @
9783ce36
...
...
@@ -537,7 +537,7 @@ static void test_exceptions(void)
if
(
!
pNtGetContextThread
||
!
pNtSetContextThread
)
{
trace
(
"NtGetContextThread/NtSetContextThread not found, skipping tests
\n
"
);
skip
(
"NtGetContextThread/NtSetContextThread not found
\n
"
);
return
;
}
...
...
@@ -797,19 +797,21 @@ static void test_simd_exceptions(void)
START_TEST
(
exception
)
{
#ifdef __i386__
pNtCurrentTeb
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"ntdll.dll"
),
"NtCurrentTeb"
);
pNtGetContextThread
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"ntdll.dll"
),
"NtGetContextThread"
);
pNtSetContextThread
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"ntdll.dll"
),
"NtSetContextThread"
);
pNtReadVirtualMemory
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"ntdll.dll"
),
"NtReadVirtualMemory"
);
pRtlRaiseException
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"ntdll.dll"
),
"RtlRaiseException"
);
pNtTerminateProcess
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"ntdll.dll"
),
"NtTerminateProcess"
);
pRtlAddVectoredExceptionHandler
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"ntdll.dll"
),
HMODULE
hntdll
=
GetModuleHandleA
(
"ntdll.dll"
);
pNtCurrentTeb
=
(
void
*
)
GetProcAddress
(
hntdll
,
"NtCurrentTeb"
);
pNtGetContextThread
=
(
void
*
)
GetProcAddress
(
hntdll
,
"NtGetContextThread"
);
pNtSetContextThread
=
(
void
*
)
GetProcAddress
(
hntdll
,
"NtSetContextThread"
);
pNtReadVirtualMemory
=
(
void
*
)
GetProcAddress
(
hntdll
,
"NtReadVirtualMemory"
);
pRtlRaiseException
=
(
void
*
)
GetProcAddress
(
hntdll
,
"RtlRaiseException"
);
pNtTerminateProcess
=
(
void
*
)
GetProcAddress
(
hntdll
,
"NtTerminateProcess"
);
pRtlAddVectoredExceptionHandler
=
(
void
*
)
GetProcAddress
(
hntdll
,
"RtlAddVectoredExceptionHandler"
);
pRtlRemoveVectoredExceptionHandler
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"ntdll.dll"
)
,
pRtlRemoveVectoredExceptionHandler
=
(
void
*
)
GetProcAddress
(
hntdll
,
"RtlRemoveVectoredExceptionHandler"
);
if
(
!
pNtCurrentTeb
)
{
trace
(
"NtCurrentTeb not found, skipping tests
\n
"
);
skip
(
"NtCurrentTeb not found
\n
"
);
return
;
}
...
...
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