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
da0a48d2
Commit
da0a48d2
authored
Feb 29, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Assign to structs instead of using memcpy.
parent
53e9e24a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
effect_linuxinput.c
dlls/dinput/effect_linuxinput.c
+3
-3
mouse.c
dlls/dinput/mouse.c
+1
-1
No files found.
dlls/dinput/effect_linuxinput.c
View file @
da0a48d2
...
...
@@ -780,12 +780,12 @@ HRESULT linuxinput_create_effect(
LinuxInputEffectImpl
*
newEffect
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
LinuxInputEffectImpl
));
DWORD
type
=
_typeFromGUID
(
rguid
);
newEffect
->
lpVtbl
=
&
LinuxInputEffectVtbl
;
newEffect
->
ref
=
1
;
memcpy
(
&
(
newEffect
->
guid
),
rguid
,
sizeof
(
*
rguid
))
;
newEffect
->
guid
=
*
rguid
;
newEffect
->
fd
=
fd
;
/* set the type. this cannot be changed over the effect's life. */
switch
(
type
)
{
case
DIEFT_PERIODIC
:
...
...
dlls/dinput/mouse.c
View file @
da0a48d2
...
...
@@ -180,7 +180,7 @@ static SysMouseImpl *alloc_device(REFGUID rguid, const void *mvt, IDirectInputIm
newDevice
->
base
.
lpVtbl
=
mvt
;
newDevice
->
base
.
ref
=
1
;
newDevice
->
base
.
dwCoopLevel
=
DISCL_NONEXCLUSIVE
|
DISCL_BACKGROUND
;
memcpy
(
&
newDevice
->
base
.
guid
,
rguid
,
sizeof
(
*
rguid
))
;
newDevice
->
base
.
guid
=
*
rguid
;
InitializeCriticalSection
(
&
newDevice
->
base
.
crit
);
newDevice
->
base
.
crit
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": SysMouseImpl*->base.crit"
);
newDevice
->
base
.
dinput
=
dinput
;
...
...
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