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
aa2da27e
Commit
aa2da27e
authored
May 26, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
May 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Implement IDirectInputDevice_EnumEffectsInFile WtoA conversion.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6340a296
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
ansi.c
dlls/dinput/ansi.c
+13
-0
device.c
dlls/dinput/device.c
+0
-12
No files found.
dlls/dinput/ansi.c
View file @
aa2da27e
...
@@ -305,3 +305,16 @@ HRESULT WINAPI IDirectInputDevice2AImpl_SendDeviceData( IDirectInputDevice8A *if
...
@@ -305,3 +305,16 @@ HRESULT WINAPI IDirectInputDevice2AImpl_SendDeviceData( IDirectInputDevice8A *if
IDirectInputDevice8W
*
iface_w
=
IDirectInputDevice8W_from_impl
(
impl
);
IDirectInputDevice8W
*
iface_w
=
IDirectInputDevice8W_from_impl
(
impl
);
return
IDirectInputDevice8_SendDeviceData
(
iface_w
,
count
,
data
,
inout
,
flags
);
return
IDirectInputDevice8_SendDeviceData
(
iface_w
,
count
,
data
,
inout
,
flags
);
}
}
HRESULT
WINAPI
IDirectInputDevice7AImpl_EnumEffectsInFile
(
IDirectInputDevice8A
*
iface_a
,
const
char
*
filename_a
,
LPDIENUMEFFECTSINFILECALLBACK
callback
,
void
*
ref
,
DWORD
flags
)
{
IDirectInputDeviceImpl
*
impl
=
impl_from_IDirectInputDevice8A
(
iface_a
);
IDirectInputDevice8W
*
iface_w
=
IDirectInputDevice8W_from_impl
(
impl
);
WCHAR
buffer
[
MAX_PATH
],
*
filename_w
=
buffer
;
if
(
!
filename_a
)
filename_w
=
NULL
;
else
MultiByteToWideChar
(
CP_ACP
,
0
,
filename_a
,
-
1
,
buffer
,
MAX_PATH
);
return
IDirectInputDevice8_EnumEffectsInFile
(
iface_w
,
filename_w
,
callback
,
ref
,
flags
);
}
dlls/dinput/device.c
View file @
aa2da27e
...
@@ -1658,18 +1658,6 @@ HRESULT WINAPI IDirectInputDevice2WImpl_SendDeviceData(LPDIRECTINPUTDEVICE8W ifa
...
@@ -1658,18 +1658,6 @@ HRESULT WINAPI IDirectInputDevice2WImpl_SendDeviceData(LPDIRECTINPUTDEVICE8W ifa
return
DI_OK
;
return
DI_OK
;
}
}
HRESULT
WINAPI
IDirectInputDevice7AImpl_EnumEffectsInFile
(
LPDIRECTINPUTDEVICE8A
iface
,
LPCSTR
lpszFileName
,
LPDIENUMEFFECTSINFILECALLBACK
pec
,
LPVOID
pvRef
,
DWORD
dwFlags
)
{
IDirectInputDeviceImpl
*
This
=
impl_from_IDirectInputDevice8A
(
iface
);
FIXME
(
"(%p)->(%s,%p,%p,%08x): stub !
\n
"
,
This
,
lpszFileName
,
pec
,
pvRef
,
dwFlags
);
return
DI_OK
;
}
HRESULT
WINAPI
IDirectInputDevice7WImpl_EnumEffectsInFile
(
LPDIRECTINPUTDEVICE8W
iface
,
HRESULT
WINAPI
IDirectInputDevice7WImpl_EnumEffectsInFile
(
LPDIRECTINPUTDEVICE8W
iface
,
LPCWSTR
lpszFileName
,
LPCWSTR
lpszFileName
,
LPDIENUMEFFECTSINFILECALLBACK
pec
,
LPDIENUMEFFECTSINFILECALLBACK
pec
,
...
...
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