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
ad060ae8
Commit
ad060ae8
authored
Jan 28, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.gaming.input: Fix printf format warnings with long types.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c0af406c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
14 deletions
+15
-14
Makefile.in
dlls/windows.gaming.input/Makefile.in
+0
-1
main.c
dlls/windows.gaming.input/main.c
+15
-13
No files found.
dlls/windows.gaming.input/Makefile.in
View file @
ad060ae8
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
windows.gaming.input.dll
IMPORTS
=
combase uuid
...
...
dlls/windows.gaming.input/main.c
View file @
ad060ae8
...
...
@@ -60,7 +60,7 @@ static inline struct gamepad_vector *impl_from_IVectorView_Gamepad(IVectorView_G
static
HRESULT
STDMETHODCALLTYPE
vector_view_gamepad_QueryInterface
(
IVectorView_Gamepad
*
iface
,
REFIID
iid
,
void
**
out
)
{
TRACE
(
"iface %p, iid %s, out %p
stub!
\n
"
,
iface
,
debugstr_guid
(
iid
),
out
);
TRACE
(
"iface %p, iid %s, out %p
.
\n
"
,
iface
,
debugstr_guid
(
iid
),
out
);
if
(
IsEqualGUID
(
iid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
iid
,
&
IID_IInspectable
)
||
...
...
@@ -82,7 +82,7 @@ static ULONG STDMETHODCALLTYPE vector_view_gamepad_AddRef(
{
struct
gamepad_vector
*
impl
=
impl_from_IVectorView_Gamepad
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
impl
->
ref
);
TRACE
(
"iface %p
, ref %
u.
\n
"
,
iface
,
ref
);
TRACE
(
"iface %p
increasing refcount to %l
u.
\n
"
,
iface
,
ref
);
return
ref
;
}
...
...
@@ -91,7 +91,7 @@ static ULONG STDMETHODCALLTYPE vector_view_gamepad_Release(
{
struct
gamepad_vector
*
impl
=
impl_from_IVectorView_Gamepad
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
impl
->
ref
);
TRACE
(
"iface %p
, ref %
u.
\n
"
,
iface
,
ref
);
TRACE
(
"iface %p
decreasing refcount to %l
u.
\n
"
,
iface
,
ref
);
return
ref
;
}
...
...
@@ -119,7 +119,7 @@ static HRESULT STDMETHODCALLTYPE vector_view_gamepad_GetTrustLevel(
static
HRESULT
STDMETHODCALLTYPE
vector_view_gamepad_GetAt
(
IVectorView_Gamepad
*
iface
,
UINT32
index
,
IGamepad
**
value
)
{
FIXME
(
"iface %p, index %
#x
, value %p stub!
\n
"
,
iface
,
index
,
value
);
FIXME
(
"iface %p, index %
u
, value %p stub!
\n
"
,
iface
,
index
,
value
);
*
value
=
NULL
;
return
E_BOUNDS
;
}
...
...
@@ -145,7 +145,8 @@ static HRESULT STDMETHODCALLTYPE vector_view_gamepad_GetMany(
IVectorView_Gamepad
*
iface
,
UINT32
start_index
,
UINT32
items_size
,
IGamepad
**
items
,
UINT
*
value
)
{
FIXME
(
"iface %p, start_index %#x, items %p, value %p stub!
\n
"
,
iface
,
start_index
,
items
,
value
);
FIXME
(
"iface %p, start_index %u, items_size %u, items %p, value %p stub!
\n
"
,
iface
,
start_index
,
items_size
,
items
,
value
);
*
value
=
0
;
return
E_BOUNDS
;
}
...
...
@@ -186,7 +187,7 @@ static inline struct raw_game_controller_vector *impl_from_IVectorView_RawGameCo
static
HRESULT
STDMETHODCALLTYPE
vector_view_raw_game_controller_QueryInterface
(
IVectorView_RawGameController
*
iface
,
REFIID
iid
,
void
**
out
)
{
TRACE
(
"iface %p, iid %s, out %p
stub!
\n
"
,
iface
,
debugstr_guid
(
iid
),
out
);
TRACE
(
"iface %p, iid %s, out %p
.
\n
"
,
iface
,
debugstr_guid
(
iid
),
out
);
if
(
IsEqualGUID
(
iid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
iid
,
&
IID_IInspectable
)
||
...
...
@@ -208,7 +209,7 @@ static ULONG STDMETHODCALLTYPE vector_view_raw_game_controller_AddRef(
{
struct
raw_game_controller_vector
*
impl
=
impl_from_IVectorView_RawGameController
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
impl
->
ref
);
TRACE
(
"iface %p
, ref %
u.
\n
"
,
iface
,
ref
);
TRACE
(
"iface %p
increasing refcount to %l
u.
\n
"
,
iface
,
ref
);
return
ref
;
}
...
...
@@ -217,7 +218,7 @@ static ULONG STDMETHODCALLTYPE vector_view_raw_game_controller_Release(
{
struct
raw_game_controller_vector
*
impl
=
impl_from_IVectorView_RawGameController
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
impl
->
ref
);
TRACE
(
"iface %p
, ref %
u.
\n
"
,
iface
,
ref
);
TRACE
(
"iface %p
decreasing refcount to %l
u.
\n
"
,
iface
,
ref
);
return
ref
;
}
...
...
@@ -245,7 +246,7 @@ static HRESULT STDMETHODCALLTYPE vector_view_raw_game_controller_GetTrustLevel(
static
HRESULT
STDMETHODCALLTYPE
vector_view_raw_game_controller_GetAt
(
IVectorView_RawGameController
*
iface
,
UINT32
index
,
IRawGameController
**
value
)
{
FIXME
(
"iface %p, index %
#x
, value %p stub!
\n
"
,
iface
,
index
,
value
);
FIXME
(
"iface %p, index %
u
, value %p stub!
\n
"
,
iface
,
index
,
value
);
*
value
=
NULL
;
return
E_BOUNDS
;
}
...
...
@@ -271,7 +272,8 @@ static HRESULT STDMETHODCALLTYPE vector_view_raw_game_controller_GetMany(
IVectorView_RawGameController
*
iface
,
UINT32
start_index
,
UINT32
items_size
,
IRawGameController
**
items
,
UINT
*
value
)
{
FIXME
(
"iface %p, start_index %#x, items %p, value %p stub!
\n
"
,
iface
,
start_index
,
items
,
value
);
FIXME
(
"iface %p, start_index %u, items_size %u, items %p, value %p stub!
\n
"
,
iface
,
start_index
,
items_size
,
items
,
value
);
*
value
=
0
;
return
E_BOUNDS
;
}
...
...
@@ -326,7 +328,7 @@ static HRESULT STDMETHODCALLTYPE windows_gaming_input_QueryInterface(
{
struct
windows_gaming_input
*
impl
=
impl_from_IActivationFactory
(
iface
);
TRACE
(
"iface %p, iid %s, out %p
stub!
\n
"
,
iface
,
debugstr_guid
(
iid
),
out
);
TRACE
(
"iface %p, iid %s, out %p
.
\n
"
,
iface
,
debugstr_guid
(
iid
),
out
);
if
(
IsEqualGUID
(
iid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
iid
,
&
IID_IInspectable
)
||
...
...
@@ -362,7 +364,7 @@ static ULONG STDMETHODCALLTYPE windows_gaming_input_AddRef(
{
struct
windows_gaming_input
*
impl
=
impl_from_IActivationFactory
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
impl
->
ref
);
TRACE
(
"iface %p
, ref %
u.
\n
"
,
iface
,
ref
);
TRACE
(
"iface %p
increasing refcount to %l
u.
\n
"
,
iface
,
ref
);
return
ref
;
}
...
...
@@ -371,7 +373,7 @@ static ULONG STDMETHODCALLTYPE windows_gaming_input_Release(
{
struct
windows_gaming_input
*
impl
=
impl_from_IActivationFactory
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
impl
->
ref
);
TRACE
(
"iface %p
, ref %
u.
\n
"
,
iface
,
ref
);
TRACE
(
"iface %p
decreasing refcount to %l
u.
\n
"
,
iface
,
ref
);
return
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