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
c91dacca
Commit
c91dacca
authored
Jan 31, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.gaming.input/tests: Fix printf warnings with long types.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
30c15222
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
41 deletions
+40
-41
Makefile.in
dlls/windows.gaming.input/tests/Makefile.in
+0
-1
input.c
dlls/windows.gaming.input/tests/input.c
+40
-40
No files found.
dlls/windows.gaming.input/tests/Makefile.in
View file @
c91dacca
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
windows.gaming.input.dll
TESTDLL
=
windows.gaming.input.dll
IMPORTS
=
combase uuid
IMPORTS
=
combase uuid
...
...
dlls/windows.gaming.input/tests/input.c
View file @
c91dacca
...
@@ -113,13 +113,13 @@ static void test_Gamepad(void)
...
@@ -113,13 +113,13 @@ static void test_Gamepad(void)
gamepad_event_handler
.
IEventHandler_Gamepad_iface
.
lpVtbl
=
&
gamepad_event_handler_vtbl
;
gamepad_event_handler
.
IEventHandler_Gamepad_iface
.
lpVtbl
=
&
gamepad_event_handler_vtbl
;
hr
=
RoInitialize
(
RO_INIT_MULTITHREADED
);
hr
=
RoInitialize
(
RO_INIT_MULTITHREADED
);
ok
(
hr
==
S_OK
,
"RoInitialize failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"RoInitialize failed, hr %#
l
x
\n
"
,
hr
);
hr
=
WindowsCreateString
(
gamepad_name
,
wcslen
(
gamepad_name
),
&
str
);
hr
=
WindowsCreateString
(
gamepad_name
,
wcslen
(
gamepad_name
),
&
str
);
ok
(
hr
==
S_OK
,
"WindowsCreateString failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"WindowsCreateString failed, hr %#
l
x
\n
"
,
hr
);
hr
=
RoGetActivationFactory
(
str
,
&
IID_IActivationFactory
,
(
void
**
)
&
factory
);
hr
=
RoGetActivationFactory
(
str
,
&
IID_IActivationFactory
,
(
void
**
)
&
factory
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
REGDB_E_CLASSNOTREG
),
"RoGetActivationFactory failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
REGDB_E_CLASSNOTREG
),
"RoGetActivationFactory failed, hr %#
l
x
\n
"
,
hr
);
if
(
hr
==
REGDB_E_CLASSNOTREG
)
if
(
hr
==
REGDB_E_CLASSNOTREG
)
{
{
win_skip
(
"%s runtimeclass not registered, skipping tests.
\n
"
,
wine_dbgstr_w
(
gamepad_name
));
win_skip
(
"%s runtimeclass not registered, skipping tests.
\n
"
,
wine_dbgstr_w
(
gamepad_name
));
...
@@ -127,78 +127,78 @@ static void test_Gamepad(void)
...
@@ -127,78 +127,78 @@ static void test_Gamepad(void)
}
}
hr
=
IActivationFactory_QueryInterface
(
factory
,
&
IID_IInspectable
,
(
void
**
)
&
inspectable
);
hr
=
IActivationFactory_QueryInterface
(
factory
,
&
IID_IInspectable
,
(
void
**
)
&
inspectable
);
ok
(
hr
==
S_OK
,
"IActivationFactory_QueryInterface IID_IInspectable failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IActivationFactory_QueryInterface IID_IInspectable failed, hr %#
l
x
\n
"
,
hr
);
hr
=
IActivationFactory_QueryInterface
(
factory
,
&
IID_IAgileObject
,
(
void
**
)
&
agile_object
);
hr
=
IActivationFactory_QueryInterface
(
factory
,
&
IID_IAgileObject
,
(
void
**
)
&
agile_object
);
ok
(
hr
==
S_OK
,
"IActivationFactory_QueryInterface IID_IAgileObject failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IActivationFactory_QueryInterface IID_IAgileObject failed, hr %#
l
x
\n
"
,
hr
);
hr
=
IActivationFactory_QueryInterface
(
factory
,
&
IID_IGamepadStatics
,
(
void
**
)
&
gamepad_statics
);
hr
=
IActivationFactory_QueryInterface
(
factory
,
&
IID_IGamepadStatics
,
(
void
**
)
&
gamepad_statics
);
ok
(
hr
==
S_OK
,
"IActivationFactory_QueryInterface IID_IGamepadStatics failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IActivationFactory_QueryInterface IID_IGamepadStatics failed, hr %#
l
x
\n
"
,
hr
);
hr
=
IGamepadStatics_QueryInterface
(
gamepad_statics
,
&
IID_IInspectable
,
(
void
**
)
&
tmp_inspectable
);
hr
=
IGamepadStatics_QueryInterface
(
gamepad_statics
,
&
IID_IInspectable
,
(
void
**
)
&
tmp_inspectable
);
ok
(
hr
==
S_OK
,
"IGamepadStatics_QueryInterface IID_IInspectable failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IGamepadStatics_QueryInterface IID_IInspectable failed, hr %#
l
x
\n
"
,
hr
);
ok
(
tmp_inspectable
==
inspectable
,
"IGamepadStatics_QueryInterface IID_IInspectable returned %p, expected %p
\n
"
,
tmp_inspectable
,
inspectable
);
ok
(
tmp_inspectable
==
inspectable
,
"IGamepadStatics_QueryInterface IID_IInspectable returned %p, expected %p
\n
"
,
tmp_inspectable
,
inspectable
);
IInspectable_Release
(
tmp_inspectable
);
IInspectable_Release
(
tmp_inspectable
);
hr
=
IGamepadStatics_QueryInterface
(
gamepad_statics
,
&
IID_IAgileObject
,
(
void
**
)
&
tmp_agile_object
);
hr
=
IGamepadStatics_QueryInterface
(
gamepad_statics
,
&
IID_IAgileObject
,
(
void
**
)
&
tmp_agile_object
);
ok
(
hr
==
S_OK
,
"IGamepadStatics_QueryInterface IID_IAgileObject failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IGamepadStatics_QueryInterface IID_IAgileObject failed, hr %#
l
x
\n
"
,
hr
);
ok
(
tmp_agile_object
==
agile_object
,
"IGamepadStatics_QueryInterface IID_IAgileObject returned %p, expected %p
\n
"
,
tmp_agile_object
,
agile_object
);
ok
(
tmp_agile_object
==
agile_object
,
"IGamepadStatics_QueryInterface IID_IAgileObject returned %p, expected %p
\n
"
,
tmp_agile_object
,
agile_object
);
IAgileObject_Release
(
tmp_agile_object
);
IAgileObject_Release
(
tmp_agile_object
);
hr
=
IGamepadStatics_get_Gamepads
(
gamepad_statics
,
&
gamepads
);
hr
=
IGamepadStatics_get_Gamepads
(
gamepad_statics
,
&
gamepads
);
ok
(
hr
==
S_OK
,
"IGamepadStatics_get_Gamepads failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IGamepadStatics_get_Gamepads failed, hr %#
l
x
\n
"
,
hr
);
hr
=
IVectorView_Gamepad_QueryInterface
(
gamepads
,
&
IID_IInspectable
,
(
void
**
)
&
tmp_inspectable
);
hr
=
IVectorView_Gamepad_QueryInterface
(
gamepads
,
&
IID_IInspectable
,
(
void
**
)
&
tmp_inspectable
);
ok
(
hr
==
S_OK
,
"IVectorView_Gamepad_QueryInterface failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IVectorView_Gamepad_QueryInterface failed, hr %#
l
x
\n
"
,
hr
);
ok
(
tmp_inspectable
!=
inspectable
,
"IVectorView_Gamepad_QueryInterface returned %p, expected %p
\n
"
,
tmp_inspectable
,
inspectable
);
ok
(
tmp_inspectable
!=
inspectable
,
"IVectorView_Gamepad_QueryInterface returned %p, expected %p
\n
"
,
tmp_inspectable
,
inspectable
);
IInspectable_Release
(
tmp_inspectable
);
IInspectable_Release
(
tmp_inspectable
);
hr
=
IVectorView_Gamepad_QueryInterface
(
gamepads
,
&
IID_IAgileObject
,
(
void
**
)
&
tmp_agile_object
);
hr
=
IVectorView_Gamepad_QueryInterface
(
gamepads
,
&
IID_IAgileObject
,
(
void
**
)
&
tmp_agile_object
);
ok
(
hr
==
S_OK
,
"IVectorView_Gamepad_QueryInterface failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IVectorView_Gamepad_QueryInterface failed, hr %#
l
x
\n
"
,
hr
);
ok
(
tmp_agile_object
!=
agile_object
,
"IVectorView_Gamepad_QueryInterface IID_IAgileObject returned agile_object
\n
"
);
ok
(
tmp_agile_object
!=
agile_object
,
"IVectorView_Gamepad_QueryInterface IID_IAgileObject returned agile_object
\n
"
);
IAgileObject_Release
(
tmp_agile_object
);
IAgileObject_Release
(
tmp_agile_object
);
size
=
0xdeadbeef
;
size
=
0xdeadbeef
;
hr
=
IVectorView_Gamepad_get_Size
(
gamepads
,
&
size
);
hr
=
IVectorView_Gamepad_get_Size
(
gamepads
,
&
size
);
ok
(
hr
==
S_OK
,
"IVectorView_Gamepad_get_Size failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IVectorView_Gamepad_get_Size failed, hr %#
l
x
\n
"
,
hr
);
ok
(
size
!=
0xdeadbeef
,
"IVectorView_Gamepad_get_Size returned %u
\n
"
,
size
);
ok
(
size
!=
0xdeadbeef
,
"IVectorView_Gamepad_get_Size returned %u
\n
"
,
size
);
gamepad
=
(
IGamepad
*
)
0xdeadbeef
;
gamepad
=
(
IGamepad
*
)
0xdeadbeef
;
hr
=
IVectorView_Gamepad_GetAt
(
gamepads
,
size
,
&
gamepad
);
hr
=
IVectorView_Gamepad_GetAt
(
gamepads
,
size
,
&
gamepad
);
ok
(
hr
==
E_BOUNDS
,
"IVectorView_Gamepad_GetAt failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
E_BOUNDS
,
"IVectorView_Gamepad_GetAt failed, hr %#
l
x
\n
"
,
hr
);
ok
(
gamepad
==
NULL
,
"IVectorView_Gamepad_GetAt returned %p
\n
"
,
gamepad
);
ok
(
gamepad
==
NULL
,
"IVectorView_Gamepad_GetAt returned %p
\n
"
,
gamepad
);
hr
=
IVectorView_Gamepad_GetMany
(
gamepads
,
size
,
1
,
&
gamepad
,
&
size
);
hr
=
IVectorView_Gamepad_GetMany
(
gamepads
,
size
,
1
,
&
gamepad
,
&
size
);
ok
(
hr
==
E_BOUNDS
,
"IVectorView_Gamepad_GetMany failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
E_BOUNDS
,
"IVectorView_Gamepad_GetMany failed, hr %#
l
x
\n
"
,
hr
);
ok
(
size
==
0
,
"IVectorView_Gamepad_GetMany returned count %u
\n
"
,
size
);
ok
(
size
==
0
,
"IVectorView_Gamepad_GetMany returned count %u
\n
"
,
size
);
size
=
0xdeadbeef
;
size
=
0xdeadbeef
;
found
=
TRUE
;
found
=
TRUE
;
gamepad
=
(
IGamepad
*
)
0xdeadbeef
;
gamepad
=
(
IGamepad
*
)
0xdeadbeef
;
hr
=
IVectorView_Gamepad_IndexOf
(
gamepads
,
gamepad
,
&
size
,
&
found
);
hr
=
IVectorView_Gamepad_IndexOf
(
gamepads
,
gamepad
,
&
size
,
&
found
);
ok
(
hr
==
S_OK
,
"IVectorView_Gamepad_IndexOf failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IVectorView_Gamepad_IndexOf failed, hr %#
l
x
\n
"
,
hr
);
ok
(
size
==
0
&&
found
==
FALSE
,
"IVectorView_Gamepad_IndexOf returned size %d, found %d
\n
"
,
size
,
found
);
ok
(
size
==
0
&&
found
==
FALSE
,
"IVectorView_Gamepad_IndexOf returned size %d, found %d
\n
"
,
size
,
found
);
IVectorView_Gamepad_Release
(
gamepads
);
IVectorView_Gamepad_Release
(
gamepads
);
token
.
value
=
0xdeadbeef
;
token
.
value
=
0xdeadbeef
;
hr
=
IGamepadStatics_add_GamepadAdded
(
gamepad_statics
,
&
gamepad_event_handler
.
IEventHandler_Gamepad_iface
,
&
token
);
hr
=
IGamepadStatics_add_GamepadAdded
(
gamepad_statics
,
&
gamepad_event_handler
.
IEventHandler_Gamepad_iface
,
&
token
);
ok
(
hr
==
S_OK
,
"IGamepadStatics_add_GamepadAdded failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IGamepadStatics_add_GamepadAdded failed, hr %#
l
x
\n
"
,
hr
);
ok
(
token
.
value
!=
0xdeadbeef
,
"IGamepadStatics_add_GamepadAdded returned token %#I64x
\n
"
,
token
.
value
);
ok
(
token
.
value
!=
0xdeadbeef
,
"IGamepadStatics_add_GamepadAdded returned token %#I64x
\n
"
,
token
.
value
);
hr
=
IGamepadStatics_remove_GamepadAdded
(
gamepad_statics
,
token
);
hr
=
IGamepadStatics_remove_GamepadAdded
(
gamepad_statics
,
token
);
ok
(
hr
==
S_OK
,
"IGamepadStatics_add_GamepadAdded failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IGamepadStatics_add_GamepadAdded failed, hr %#
l
x
\n
"
,
hr
);
token
.
value
=
0xdeadbeef
;
token
.
value
=
0xdeadbeef
;
hr
=
IGamepadStatics_add_GamepadRemoved
(
gamepad_statics
,
&
gamepad_event_handler
.
IEventHandler_Gamepad_iface
,
&
token
);
hr
=
IGamepadStatics_add_GamepadRemoved
(
gamepad_statics
,
&
gamepad_event_handler
.
IEventHandler_Gamepad_iface
,
&
token
);
ok
(
hr
==
S_OK
,
"IGamepadStatics_add_GamepadRemoved failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IGamepadStatics_add_GamepadRemoved failed, hr %#
l
x
\n
"
,
hr
);
ok
(
token
.
value
!=
0xdeadbeef
,
"IGamepadStatics_add_GamepadRemoved returned token %#I64x
\n
"
,
token
.
value
);
ok
(
token
.
value
!=
0xdeadbeef
,
"IGamepadStatics_add_GamepadRemoved returned token %#I64x
\n
"
,
token
.
value
);
hr
=
IGamepadStatics_remove_GamepadRemoved
(
gamepad_statics
,
token
);
hr
=
IGamepadStatics_remove_GamepadRemoved
(
gamepad_statics
,
token
);
ok
(
hr
==
S_OK
,
"IGamepadStatics_add_GamepadAdded failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IGamepadStatics_add_GamepadAdded failed, hr %#
l
x
\n
"
,
hr
);
hr
=
IGamepadStatics_add_GamepadAdded
(
gamepad_statics
,
NULL
,
&
token
);
hr
=
IGamepadStatics_add_GamepadAdded
(
gamepad_statics
,
NULL
,
&
token
);
ok
(
hr
==
E_INVALIDARG
,
"IGamepadStatics_add_GamepadAdded failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"IGamepadStatics_add_GamepadAdded failed, hr %#
l
x
\n
"
,
hr
);
IGamepadStatics_Release
(
gamepad_statics
);
IGamepadStatics_Release
(
gamepad_statics
);
...
@@ -290,13 +290,13 @@ static void test_RawGameController(void)
...
@@ -290,13 +290,13 @@ static void test_RawGameController(void)
controller_event_handler
.
IEventHandler_RawGameController_iface
.
lpVtbl
=
&
controller_event_handler_vtbl
;
controller_event_handler
.
IEventHandler_RawGameController_iface
.
lpVtbl
=
&
controller_event_handler_vtbl
;
hr
=
RoInitialize
(
RO_INIT_MULTITHREADED
);
hr
=
RoInitialize
(
RO_INIT_MULTITHREADED
);
ok
(
hr
==
S_OK
||
hr
==
S_FALSE
,
"RoInitialize failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
||
hr
==
S_FALSE
,
"RoInitialize failed, hr %#
l
x
\n
"
,
hr
);
hr
=
WindowsCreateString
(
controller_name
,
wcslen
(
controller_name
),
&
str
);
hr
=
WindowsCreateString
(
controller_name
,
wcslen
(
controller_name
),
&
str
);
ok
(
hr
==
S_OK
,
"WindowsCreateString failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"WindowsCreateString failed, hr %#
l
x
\n
"
,
hr
);
hr
=
RoGetActivationFactory
(
str
,
&
IID_IActivationFactory
,
(
void
**
)
&
factory
);
hr
=
RoGetActivationFactory
(
str
,
&
IID_IActivationFactory
,
(
void
**
)
&
factory
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
REGDB_E_CLASSNOTREG
),
"RoGetActivationFactory failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
REGDB_E_CLASSNOTREG
),
"RoGetActivationFactory failed, hr %#
l
x
\n
"
,
hr
);
if
(
hr
==
REGDB_E_CLASSNOTREG
)
if
(
hr
==
REGDB_E_CLASSNOTREG
)
{
{
win_skip
(
"%s runtimeclass not registered, skipping tests.
\n
"
,
wine_dbgstr_w
(
controller_name
));
win_skip
(
"%s runtimeclass not registered, skipping tests.
\n
"
,
wine_dbgstr_w
(
controller_name
));
...
@@ -304,78 +304,78 @@ static void test_RawGameController(void)
...
@@ -304,78 +304,78 @@ static void test_RawGameController(void)
}
}
hr
=
IActivationFactory_QueryInterface
(
factory
,
&
IID_IInspectable
,
(
void
**
)
&
inspectable
);
hr
=
IActivationFactory_QueryInterface
(
factory
,
&
IID_IInspectable
,
(
void
**
)
&
inspectable
);
ok
(
hr
==
S_OK
,
"IActivationFactory_QueryInterface IID_IInspectable failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IActivationFactory_QueryInterface IID_IInspectable failed, hr %#
l
x
\n
"
,
hr
);
hr
=
IActivationFactory_QueryInterface
(
factory
,
&
IID_IAgileObject
,
(
void
**
)
&
agile_object
);
hr
=
IActivationFactory_QueryInterface
(
factory
,
&
IID_IAgileObject
,
(
void
**
)
&
agile_object
);
ok
(
hr
==
S_OK
,
"IActivationFactory_QueryInterface IID_IAgileObject failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IActivationFactory_QueryInterface IID_IAgileObject failed, hr %#
l
x
\n
"
,
hr
);
hr
=
IActivationFactory_QueryInterface
(
factory
,
&
IID_IRawGameControllerStatics
,
(
void
**
)
&
controller_statics
);
hr
=
IActivationFactory_QueryInterface
(
factory
,
&
IID_IRawGameControllerStatics
,
(
void
**
)
&
controller_statics
);
ok
(
hr
==
S_OK
,
"IActivationFactory_QueryInterface IID_IRawGameControllerStatics failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IActivationFactory_QueryInterface IID_IRawGameControllerStatics failed, hr %#
l
x
\n
"
,
hr
);
hr
=
IRawGameControllerStatics_QueryInterface
(
controller_statics
,
&
IID_IInspectable
,
(
void
**
)
&
tmp_inspectable
);
hr
=
IRawGameControllerStatics_QueryInterface
(
controller_statics
,
&
IID_IInspectable
,
(
void
**
)
&
tmp_inspectable
);
ok
(
hr
==
S_OK
,
"IRawGameControllerStatics_QueryInterface IID_IInspectable failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IRawGameControllerStatics_QueryInterface IID_IInspectable failed, hr %#
l
x
\n
"
,
hr
);
ok
(
tmp_inspectable
==
inspectable
,
"IRawGameControllerStatics_QueryInterface IID_IInspectable returned %p, expected %p
\n
"
,
tmp_inspectable
,
inspectable
);
ok
(
tmp_inspectable
==
inspectable
,
"IRawGameControllerStatics_QueryInterface IID_IInspectable returned %p, expected %p
\n
"
,
tmp_inspectable
,
inspectable
);
IInspectable_Release
(
tmp_inspectable
);
IInspectable_Release
(
tmp_inspectable
);
hr
=
IRawGameControllerStatics_QueryInterface
(
controller_statics
,
&
IID_IAgileObject
,
(
void
**
)
&
tmp_agile_object
);
hr
=
IRawGameControllerStatics_QueryInterface
(
controller_statics
,
&
IID_IAgileObject
,
(
void
**
)
&
tmp_agile_object
);
ok
(
hr
==
S_OK
,
"IRawGameControllerStatics_QueryInterface IID_IAgileObject failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IRawGameControllerStatics_QueryInterface IID_IAgileObject failed, hr %#
l
x
\n
"
,
hr
);
ok
(
tmp_agile_object
==
agile_object
,
"IRawGameControllerStatics_QueryInterface IID_IAgileObject returned %p, expected %p
\n
"
,
tmp_agile_object
,
agile_object
);
ok
(
tmp_agile_object
==
agile_object
,
"IRawGameControllerStatics_QueryInterface IID_IAgileObject returned %p, expected %p
\n
"
,
tmp_agile_object
,
agile_object
);
IAgileObject_Release
(
tmp_agile_object
);
IAgileObject_Release
(
tmp_agile_object
);
hr
=
IRawGameControllerStatics_get_RawGameControllers
(
controller_statics
,
&
controllers
);
hr
=
IRawGameControllerStatics_get_RawGameControllers
(
controller_statics
,
&
controllers
);
ok
(
hr
==
S_OK
,
"IRawGameControllerStatics_get_RawGameControllers failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IRawGameControllerStatics_get_RawGameControllers failed, hr %#
l
x
\n
"
,
hr
);
hr
=
IVectorView_RawGameController_QueryInterface
(
controllers
,
&
IID_IInspectable
,
(
void
**
)
&
tmp_inspectable
);
hr
=
IVectorView_RawGameController_QueryInterface
(
controllers
,
&
IID_IInspectable
,
(
void
**
)
&
tmp_inspectable
);
ok
(
hr
==
S_OK
,
"IVectorView_RawGameController_QueryInterface failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IVectorView_RawGameController_QueryInterface failed, hr %#
l
x
\n
"
,
hr
);
ok
(
tmp_inspectable
!=
inspectable
,
"IVectorView_RawGameController_QueryInterface returned %p, expected %p
\n
"
,
tmp_inspectable
,
inspectable
);
ok
(
tmp_inspectable
!=
inspectable
,
"IVectorView_RawGameController_QueryInterface returned %p, expected %p
\n
"
,
tmp_inspectable
,
inspectable
);
IInspectable_Release
(
tmp_inspectable
);
IInspectable_Release
(
tmp_inspectable
);
hr
=
IVectorView_RawGameController_QueryInterface
(
controllers
,
&
IID_IAgileObject
,
(
void
**
)
&
tmp_agile_object
);
hr
=
IVectorView_RawGameController_QueryInterface
(
controllers
,
&
IID_IAgileObject
,
(
void
**
)
&
tmp_agile_object
);
ok
(
hr
==
S_OK
,
"IVectorView_RawGameController_QueryInterface failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IVectorView_RawGameController_QueryInterface failed, hr %#
l
x
\n
"
,
hr
);
ok
(
tmp_agile_object
!=
agile_object
,
"IVectorView_RawGameController_QueryInterface IID_IAgileObject returned agile_object
\n
"
);
ok
(
tmp_agile_object
!=
agile_object
,
"IVectorView_RawGameController_QueryInterface IID_IAgileObject returned agile_object
\n
"
);
IAgileObject_Release
(
tmp_agile_object
);
IAgileObject_Release
(
tmp_agile_object
);
size
=
0xdeadbeef
;
size
=
0xdeadbeef
;
hr
=
IVectorView_RawGameController_get_Size
(
controllers
,
&
size
);
hr
=
IVectorView_RawGameController_get_Size
(
controllers
,
&
size
);
ok
(
hr
==
S_OK
,
"IVectorView_RawGameController_get_Size failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IVectorView_RawGameController_get_Size failed, hr %#
l
x
\n
"
,
hr
);
ok
(
size
!=
0xdeadbeef
,
"IVectorView_RawGameController_get_Size returned %u
\n
"
,
size
);
ok
(
size
!=
0xdeadbeef
,
"IVectorView_RawGameController_get_Size returned %u
\n
"
,
size
);
hr
=
IVectorView_RawGameController_GetMany
(
controllers
,
size
,
1
,
&
controller
,
&
size
);
hr
=
IVectorView_RawGameController_GetMany
(
controllers
,
size
,
1
,
&
controller
,
&
size
);
ok
(
hr
==
E_BOUNDS
,
"IVectorView_RawGameController_GetMany failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
E_BOUNDS
,
"IVectorView_RawGameController_GetMany failed, hr %#
l
x
\n
"
,
hr
);
ok
(
size
==
0
,
"IVectorView_RawGameController_GetMany returned count %u
\n
"
,
size
);
ok
(
size
==
0
,
"IVectorView_RawGameController_GetMany returned count %u
\n
"
,
size
);
controller
=
(
IRawGameController
*
)
0xdeadbeef
;
controller
=
(
IRawGameController
*
)
0xdeadbeef
;
hr
=
IVectorView_RawGameController_GetAt
(
controllers
,
size
,
&
controller
);
hr
=
IVectorView_RawGameController_GetAt
(
controllers
,
size
,
&
controller
);
ok
(
hr
==
E_BOUNDS
,
"IVectorView_RawGameController_GetAt failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
E_BOUNDS
,
"IVectorView_RawGameController_GetAt failed, hr %#
l
x
\n
"
,
hr
);
ok
(
controller
==
NULL
,
"IVectorView_RawGameController_GetAt returned %p
\n
"
,
controller
);
ok
(
controller
==
NULL
,
"IVectorView_RawGameController_GetAt returned %p
\n
"
,
controller
);
size
=
0xdeadbeef
;
size
=
0xdeadbeef
;
found
=
TRUE
;
found
=
TRUE
;
controller
=
(
IRawGameController
*
)
0xdeadbeef
;
controller
=
(
IRawGameController
*
)
0xdeadbeef
;
hr
=
IVectorView_RawGameController_IndexOf
(
controllers
,
controller
,
&
size
,
&
found
);
hr
=
IVectorView_RawGameController_IndexOf
(
controllers
,
controller
,
&
size
,
&
found
);
ok
(
hr
==
S_OK
,
"IVectorView_RawGameController_IndexOf failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IVectorView_RawGameController_IndexOf failed, hr %#
l
x
\n
"
,
hr
);
ok
(
size
==
0
&&
found
==
FALSE
,
"IVectorView_RawGameController_IndexOf returned size %d, found %d
\n
"
,
size
,
found
);
ok
(
size
==
0
&&
found
==
FALSE
,
"IVectorView_RawGameController_IndexOf returned size %d, found %d
\n
"
,
size
,
found
);
IVectorView_RawGameController_Release
(
controllers
);
IVectorView_RawGameController_Release
(
controllers
);
token
.
value
=
0xdeadbeef
;
token
.
value
=
0xdeadbeef
;
hr
=
IRawGameControllerStatics_add_RawGameControllerAdded
(
controller_statics
,
&
controller_event_handler
.
IEventHandler_RawGameController_iface
,
&
token
);
hr
=
IRawGameControllerStatics_add_RawGameControllerAdded
(
controller_statics
,
&
controller_event_handler
.
IEventHandler_RawGameController_iface
,
&
token
);
ok
(
hr
==
S_OK
,
"IRawGameControllerStatics_add_RawGameControllerAdded failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IRawGameControllerStatics_add_RawGameControllerAdded failed, hr %#
l
x
\n
"
,
hr
);
ok
(
token
.
value
!=
0xdeadbeef
,
"IRawGameControllerStatics_add_RawGameControllerAdded returned token %#I64x
\n
"
,
token
.
value
);
ok
(
token
.
value
!=
0xdeadbeef
,
"IRawGameControllerStatics_add_RawGameControllerAdded returned token %#I64x
\n
"
,
token
.
value
);
hr
=
IRawGameControllerStatics_remove_RawGameControllerAdded
(
controller_statics
,
token
);
hr
=
IRawGameControllerStatics_remove_RawGameControllerAdded
(
controller_statics
,
token
);
ok
(
hr
==
S_OK
,
"IRawGameControllerStatics_add_RawGameControllerAdded failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IRawGameControllerStatics_add_RawGameControllerAdded failed, hr %#
l
x
\n
"
,
hr
);
token
.
value
=
0xdeadbeef
;
token
.
value
=
0xdeadbeef
;
hr
=
IRawGameControllerStatics_add_RawGameControllerRemoved
(
controller_statics
,
&
controller_event_handler
.
IEventHandler_RawGameController_iface
,
&
token
);
hr
=
IRawGameControllerStatics_add_RawGameControllerRemoved
(
controller_statics
,
&
controller_event_handler
.
IEventHandler_RawGameController_iface
,
&
token
);
ok
(
hr
==
S_OK
,
"IRawGameControllerStatics_add_RawGameControllerRemoved failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IRawGameControllerStatics_add_RawGameControllerRemoved failed, hr %#
l
x
\n
"
,
hr
);
ok
(
token
.
value
!=
0xdeadbeef
,
"IRawGameControllerStatics_add_RawGameControllerRemoved returned token %#I64x
\n
"
,
token
.
value
);
ok
(
token
.
value
!=
0xdeadbeef
,
"IRawGameControllerStatics_add_RawGameControllerRemoved returned token %#I64x
\n
"
,
token
.
value
);
hr
=
IRawGameControllerStatics_remove_RawGameControllerRemoved
(
controller_statics
,
token
);
hr
=
IRawGameControllerStatics_remove_RawGameControllerRemoved
(
controller_statics
,
token
);
ok
(
hr
==
S_OK
,
"IRawGameControllerStatics_add_RawGameControllerAdded failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"IRawGameControllerStatics_add_RawGameControllerAdded failed, hr %#
l
x
\n
"
,
hr
);
hr
=
IRawGameControllerStatics_add_RawGameControllerAdded
(
controller_statics
,
NULL
,
&
token
);
hr
=
IRawGameControllerStatics_add_RawGameControllerAdded
(
controller_statics
,
NULL
,
&
token
);
ok
(
hr
==
E_INVALIDARG
,
"IRawGameControllerStatics_add_RawGameControllerAdded failed, hr %#x
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"IRawGameControllerStatics_add_RawGameControllerAdded failed, hr %#
l
x
\n
"
,
hr
);
IRawGameControllerStatics_Release
(
controller_statics
);
IRawGameControllerStatics_Release
(
controller_statics
);
...
...
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