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
f7ca911a
Commit
f7ca911a
authored
Nov 02, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Use a separate last_check for joyGetDevCapsW and joyGetPosEx.
Fixing spurious tests failures on the testbot.
parent
1d5e6d23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
joystick.c
dlls/winmm/joystick.c
+2
-1
No files found.
dlls/winmm/joystick.c
View file @
f7ca911a
...
@@ -136,7 +136,6 @@ struct joystick
...
@@ -136,7 +136,6 @@ struct joystick
static
DIDEVICEINSTANCEW
instances
[
16
];
static
DIDEVICEINSTANCEW
instances
[
16
];
static
struct
joystick
joysticks
[
16
];
static
struct
joystick
joysticks
[
16
];
static
IDirectInput8W
*
dinput
;
static
IDirectInput8W
*
dinput
;
static
ULONG
last_check
;
static
BOOL
CALLBACK
enum_instances
(
const
DIDEVICEINSTANCEW
*
instance
,
void
*
context
)
static
BOOL
CALLBACK
enum_instances
(
const
DIDEVICEINSTANCEW
*
instance
,
void
*
context
)
{
{
...
@@ -313,6 +312,7 @@ UINT WINAPI DECLSPEC_HOTPATCH joyGetNumDevs(void)
...
@@ -313,6 +312,7 @@ UINT WINAPI DECLSPEC_HOTPATCH joyGetNumDevs(void)
*/
*/
MMRESULT
WINAPI
DECLSPEC_HOTPATCH
joyGetDevCapsW
(
UINT_PTR
id
,
JOYCAPSW
*
caps
,
UINT
size
)
MMRESULT
WINAPI
DECLSPEC_HOTPATCH
joyGetDevCapsW
(
UINT_PTR
id
,
JOYCAPSW
*
caps
,
UINT
size
)
{
{
static
ULONG
last_check
;
DIDEVICEOBJECTINSTANCEW
instance
=
{.
dwSize
=
sizeof
(
DIDEVICEOBJECTINSTANCEW
)};
DIDEVICEOBJECTINSTANCEW
instance
=
{.
dwSize
=
sizeof
(
DIDEVICEOBJECTINSTANCEW
)};
DIDEVCAPS
dicaps
=
{.
dwSize
=
sizeof
(
DIDEVCAPS
)};
DIDEVCAPS
dicaps
=
{.
dwSize
=
sizeof
(
DIDEVCAPS
)};
DIPROPDWORD
diprop
=
DIPROPDWORD
diprop
=
...
@@ -464,6 +464,7 @@ MMRESULT WINAPI DECLSPEC_HOTPATCH joyGetDevCapsA( UINT_PTR id, JOYCAPSA *caps, U
...
@@ -464,6 +464,7 @@ MMRESULT WINAPI DECLSPEC_HOTPATCH joyGetDevCapsA( UINT_PTR id, JOYCAPSA *caps, U
*/
*/
MMRESULT
WINAPI
DECLSPEC_HOTPATCH
joyGetPosEx
(
UINT
id
,
JOYINFOEX
*
info
)
MMRESULT
WINAPI
DECLSPEC_HOTPATCH
joyGetPosEx
(
UINT
id
,
JOYINFOEX
*
info
)
{
{
static
ULONG
last_check
;
DWORD
i
,
ticks
=
GetTickCount
();
DWORD
i
,
ticks
=
GetTickCount
();
MMRESULT
res
=
JOYERR_NOERROR
;
MMRESULT
res
=
JOYERR_NOERROR
;
IDirectInputDevice8W
*
device
;
IDirectInputDevice8W
*
device
;
...
...
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