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
2a56437f
Commit
2a56437f
authored
Jan 20, 2003
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
{Get,Set}ThreadPriorityBoost are stubs on Win98.
parent
389df3db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
thread.c
dlls/kernel/tests/thread.c
+21
-10
No files found.
dlls/kernel/tests/thread.c
View file @
2a56437f
...
...
@@ -370,7 +370,8 @@ VOID test_thread_priority()
HANDLE
curthread
,
access_thread
;
DWORD
curthreadId
,
exitCode
;
int
min_priority
=-
2
,
max_priority
=
2
;
int
i
,
error
;
BOOL
disabled
;
int
i
;
curthread
=
GetCurrentThread
();
curthreadId
=
GetCurrentThreadId
();
...
...
@@ -398,7 +399,7 @@ VOID test_thread_priority()
ok
(
pSetThreadPriorityBoost
(
access_thread
,
1
)
==
0
,
"SetThreadPriorityBoost did not obey access restrictions"
);
if
(
pGetThreadPriorityBoost
)
ok
(
pGetThreadPriorityBoost
(
access_thread
,
&
error
)
==
0
,
ok
(
pGetThreadPriorityBoost
(
access_thread
,
&
disabled
)
==
0
,
"GetThreadPriorityBoost did not obey access restrictions"
);
ok
(
GetExitCodeThread
(
access_thread
,
&
exitCode
)
==
0
,
"GetExitCodeThread did not obey access restrictions"
);
...
...
@@ -426,15 +427,25 @@ VOID test_thread_priority()
/* Check thread priority boost */
if
(
pGetThreadPriorityBoost
&&
pSetThreadPriorityBoost
)
{
BOOL
rc
;
todo_wine
{
ok
(
pSetThreadPriorityBoost
(
curthread
,
1
)
!=
0
,
"SetThreadPriorityBoost Failed"
);
ok
(
pGetThreadPriorityBoost
(
curthread
,
&
error
)
!=
0
&&
error
==
1
,
"GetThreadPriorityBoost Failed"
);
ok
(
pSetThreadPriorityBoost
(
curthread
,
0
)
!=
0
,
"SetThreadPriorityBoost Failed"
);
ok
(
pGetThreadPriorityBoost
(
curthread
,
&
error
)
!=
0
&&
error
==
0
,
"GetThreadPriorityBoost Failed"
);
SetLastError
(
0
);
rc
=
pGetThreadPriorityBoost
(
curthread
,
&
disabled
);
if
(
rc
!=
0
||
GetLastError
()
!=
ERROR_CALL_NOT_IMPLEMENTED
)
{
ok
(
rc
!=
0
,
"error=%ld"
,
GetLastError
());
ok
(
pSetThreadPriorityBoost
(
curthread
,
1
)
!=
0
,
"error=%ld"
,
GetLastError
());
rc
=
pGetThreadPriorityBoost
(
curthread
,
&
disabled
);
ok
(
rc
!=
0
&&
disabled
==
1
,
"rc=%d error=%ld disabled=%d"
,
rc
,
GetLastError
(),
disabled
);
ok
(
pSetThreadPriorityBoost
(
curthread
,
0
)
!=
0
,
"error=%ld"
,
GetLastError
());
rc
=
pGetThreadPriorityBoost
(
curthread
,
&
disabled
);
ok
(
rc
!=
0
&&
disabled
==
0
,
"rc=%d error=%ld disabled=%d"
,
rc
,
GetLastError
(),
disabled
);
}
}
}
}
...
...
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