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
5c1e6cf7
Commit
5c1e6cf7
authored
Nov 13, 2012
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix 32-bit thread test failures on NT 5.x 64bit.
parent
1f090898
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
thread.c
dlls/kernel32/tests/thread.c
+10
-7
No files found.
dlls/kernel32/tests/thread.c
View file @
5c1e6cf7
...
@@ -961,16 +961,19 @@ static void test_SetThreadContext(void)
...
@@ -961,16 +961,19 @@ static void test_SetThreadContext(void)
ctx
.
ContextFlags
=
CONTEXT_FULL
;
ctx
.
ContextFlags
=
CONTEXT_FULL
;
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
GetThreadContext
(
thread
,
&
ctx
);
ret
=
GetThreadContext
(
thread
,
&
ctx
);
ok
(
!
ret
,
"GetThreadContext succeeded
\n
"
);
ok
(
(
!
ret
&&
(
GetLastError
()
==
ERROR_GEN_FAILURE
))
||
ok
(
GetLastError
()
==
ERROR_GEN_FAILURE
||
broken
(
GetLastError
()
==
ERROR_INVALID_HANDLE
),
/* win2k */
(
!
ret
&&
broken
(
GetLastError
()
==
ERROR_INVALID_HANDLE
))
||
/* win2k */
"wrong error %u
\n
"
,
GetLastError
()
);
broken
(
ret
),
/* 32bit application on NT 5.x 64bit */
"got %d with %u (expected FALSE with ERROR_GEN_FAILURE)
\n
"
,
ret
,
GetLastError
()
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
SetThreadContext
(
thread
,
&
ctx
);
ret
=
SetThreadContext
(
thread
,
&
ctx
);
ok
(
!
ret
,
"SetThreadContext succeeded
\n
"
);
ok
(
(
!
ret
&&
((
GetLastError
()
==
ERROR_GEN_FAILURE
)
||
(
GetLastError
()
==
ERROR_ACCESS_DENIED
)))
||
ok
(
GetLastError
()
==
ERROR_GEN_FAILURE
||
GetLastError
()
==
ERROR_ACCESS_DENIED
||
(
!
ret
&&
broken
(
GetLastError
()
==
ERROR_INVALID_HANDLE
))
||
/* win2k */
broken
(
GetLastError
()
==
ERROR_INVALID_HANDLE
),
/* win2k */
broken
(
ret
),
/* 32bit application on NT 5.x 64bit */
"wrong error %u
\n
"
,
GetLastError
()
);
"got %d with %u (expected FALSE with ERROR_GEN_FAILURE or ERROR_ACCESS_DENIED)
\n
"
,
ret
,
GetLastError
()
);
CloseHandle
(
thread
);
CloseHandle
(
thread
);
}
}
...
...
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