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
fefc1e57
Commit
fefc1e57
authored
May 13, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
May 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Avoid leaking a IDirectInput reference (Valgrind).
parent
63702c22
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
device8.c
dlls/dinput/tests/device8.c
+1
-0
force_feedback.c
dlls/dinput/tests/force_feedback.c
+7
-1
joystick8.c
dlls/dinput/tests/joystick8.c
+4
-0
No files found.
dlls/dinput/tests/device8.c
View file @
fefc1e57
...
...
@@ -429,6 +429,7 @@ void test_overlapped_format( DWORD version )
cleanup:
IUnknown_Release
(
keyboard
);
IDirectInput_Release
(
dinput
);
DestroyWindow
(
hwnd
);
CloseHandle
(
event
);
...
...
dlls/dinput/tests/force_feedback.c
View file @
fefc1e57
...
...
@@ -213,7 +213,7 @@ static void check_dinput_devices( DWORD version, DIDEVICEINSTANCEW *devinst )
{
IDirectInput8W
*
di8
;
IDirectInputW
*
di
;
ULONG
count
;
ULONG
count
,
ref
;
HRESULT
hr
;
if
(
version
>=
0x800
)
...
...
@@ -270,6 +270,9 @@ static void check_dinput_devices( DWORD version, DIDEVICEINSTANCEW *devinst )
if
((
devinst
->
dwDevType
&
0xff
)
!=
DI8DEVTYPE_SUPPLEMENTAL
)
ok
(
hr
==
DI_OK
,
"EnumDevices returned: %#lx
\n
"
,
hr
);
else
ok
(
hr
==
DIERR_INVALIDPARAM
,
"EnumDevices returned: %#lx
\n
"
,
hr
);
ok
(
count
==
0
,
"got count %lu, expected 0
\n
"
,
count
);
ref
=
IDirectInput8_Release
(
di8
);
ok
(
ref
==
0
,
"Release returned %ld
\n
"
,
ref
);
}
else
{
...
...
@@ -324,6 +327,9 @@ static void check_dinput_devices( DWORD version, DIDEVICEINSTANCEW *devinst )
hr
=
IDirectInput_EnumDevices
(
di
,
0x14
,
enum_device_count
,
&
count
,
DIEDFL_ALLDEVICES
);
ok
(
hr
==
DIERR_INVALIDPARAM
,
"EnumDevices returned: %#lx
\n
"
,
hr
);
ref
=
IDirectInput_Release
(
di
);
ok
(
ref
==
0
,
"Release returned %ld
\n
"
,
ref
);
}
}
...
...
dlls/dinput/tests/joystick8.c
View file @
fefc1e57
...
...
@@ -349,6 +349,8 @@ static void check_dinput_devices( DWORD version, DIDEVICEINSTANCEW *devinst )
ref
=
IDirectInputDevice8_Release
(
device
);
ok
(
ref
==
0
,
"Release returned %ld
\n
"
,
ref
);
ref
=
IDirectInput8_Release
(
di8
);
ok
(
ref
==
0
,
"Release returned %ld
\n
"
,
ref
);
}
else
{
...
...
@@ -403,6 +405,8 @@ static void check_dinput_devices( DWORD version, DIDEVICEINSTANCEW *devinst )
hr
=
IDirectInput_EnumDevices
(
di
,
0x14
,
enum_device_count
,
&
count
,
DIEDFL_ALLDEVICES
);
ok
(
hr
==
DIERR_INVALIDPARAM
,
"EnumDevices returned: %#lx
\n
"
,
hr
);
ref
=
IDirectInput_Release
(
di
);
ok
(
ref
==
0
,
"Release returned %ld
\n
"
,
ref
);
}
}
...
...
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