Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e5f73425
Commit
e5f73425
authored
Jul 05, 2011
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jul 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Add tests for IDirectInput::GetDeviceStatus.
parent
9b1060d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
dinput.c
dlls/dinput/tests/dinput.c
+27
-0
No files found.
dlls/dinput/tests/dinput.c
View file @
e5f73425
...
...
@@ -245,6 +245,32 @@ static void test_EnumDevices(void)
IDirectInput_Release
(
pDI
);
}
static
void
test_GetDeviceStatus
(
void
)
{
IDirectInputA
*
pDI
;
HRESULT
hr
;
hr
=
DirectInputCreateA
(
hInstance
,
DIRECTINPUT_VERSION
,
&
pDI
,
NULL
);
if
(
FAILED
(
hr
))
{
win_skip
(
"Failed to instantiate a IDirectInputA instance: 0x%08x
\n
"
,
hr
);
return
;
}
hr
=
IDirectInput_GetDeviceStatus
(
pDI
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"IDirectInput_GetDeviceStatus returned 0x%08x
\n
"
,
hr
);
hr
=
IDirectInput_GetDeviceStatus
(
pDI
,
&
GUID_Unknown
);
todo_wine
ok
(
hr
==
DIERR_DEVICENOTREG
,
"IDirectInput_GetDeviceStatus returned 0x%08x
\n
"
,
hr
);
hr
=
IDirectInput_GetDeviceStatus
(
pDI
,
&
GUID_SysMouse
);
ok
(
hr
==
DI_OK
,
"IDirectInput_GetDeviceStatus returned 0x%08x
\n
"
,
hr
);
IDirectInput_Release
(
pDI
);
}
static
void
test_Initialize
(
void
)
{
IDirectInputA
*
pDI
;
...
...
@@ -329,6 +355,7 @@ START_TEST(dinput)
test_QueryInterface
();
test_CreateDevice
();
test_EnumDevices
();
test_GetDeviceStatus
();
test_Initialize
();
test_RunControlPanel
();
CoUninitialize
();
...
...
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