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
1fc5160c
Commit
1fc5160c
authored
Feb 01, 2007
by
Marcus Meissner
Committed by
Alexandre Julliard
Feb 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Fix dereference pointer after NULL check (Coverity).
parent
6239bf6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
device.c
dlls/dinput/device.c
+2
-1
No files found.
dlls/dinput/device.c
View file @
1fc5160c
...
@@ -955,7 +955,7 @@ HRESULT WINAPI IDirectInputDevice2WImpl_GetObjectInfo(
...
@@ -955,7 +955,7 @@ HRESULT WINAPI IDirectInputDevice2WImpl_GetObjectInfo(
DWORD
dwHow
)
DWORD
dwHow
)
{
{
IDirectInputDevice2AImpl
*
This
=
(
IDirectInputDevice2AImpl
*
)
iface
;
IDirectInputDevice2AImpl
*
This
=
(
IDirectInputDevice2AImpl
*
)
iface
;
DWORD
dwSize
=
pdidoi
->
dwSize
;
DWORD
dwSize
;
LPDIOBJECTDATAFORMAT
odf
;
LPDIOBJECTDATAFORMAT
odf
;
int
idx
=
-
1
;
int
idx
=
-
1
;
...
@@ -990,6 +990,7 @@ HRESULT WINAPI IDirectInputDevice2WImpl_GetObjectInfo(
...
@@ -990,6 +990,7 @@ HRESULT WINAPI IDirectInputDevice2WImpl_GetObjectInfo(
if
(
idx
<
0
)
return
DIERR_OBJECTNOTFOUND
;
if
(
idx
<
0
)
return
DIERR_OBJECTNOTFOUND
;
odf
=
dataformat_to_odf
(
This
->
data_format
.
wine_df
,
idx
);
odf
=
dataformat_to_odf
(
This
->
data_format
.
wine_df
,
idx
);
dwSize
=
pdidoi
->
dwSize
;
/* save due to memset below */
memset
(
pdidoi
,
0
,
pdidoi
->
dwSize
);
memset
(
pdidoi
,
0
,
pdidoi
->
dwSize
);
pdidoi
->
dwSize
=
dwSize
;
pdidoi
->
dwSize
=
dwSize
;
if
(
odf
->
pguid
)
pdidoi
->
guidType
=
*
odf
->
pguid
;
if
(
odf
->
pguid
)
pdidoi
->
guidType
=
*
odf
->
pguid
;
...
...
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