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
0b2fd915
Commit
0b2fd915
authored
Feb 11, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
joy.cpl: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
097fc377
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
Makefile.in
dlls/joy.cpl/Makefile.in
+0
-1
main.c
dlls/joy.cpl/main.c
+12
-12
No files found.
dlls/joy.cpl/Makefile.in
View file @
0b2fd915
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
joy.cpl
IMPORTS
=
dxguid dinput dinput8 ole32 comctl32 user32 advapi32
...
...
dlls/joy.cpl/main.c
View file @
0b2fd915
...
...
@@ -43,7 +43,7 @@ DECLSPEC_HIDDEN HMODULE hcpl;
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hdll
,
DWORD
reason
,
LPVOID
reserved
)
{
TRACE
(
"(%p, %d, %p)
\n
"
,
hdll
,
reason
,
reserved
);
TRACE
(
"(%p, %
l
d, %p)
\n
"
,
hdll
,
reason
,
reserved
);
switch
(
reason
)
{
...
...
@@ -297,7 +297,7 @@ static INT_PTR CALLBACK list_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM
static
struct
JoystickData
*
data
;
int
sel
;
TRACE
(
"(%p, 0x%08x/%d, 0x%
l
x)
\n
"
,
hwnd
,
msg
,
msg
,
lparam
);
TRACE
(
"(%p, 0x%08x/%d, 0x%
I
x)
\n
"
,
hwnd
,
msg
,
msg
,
lparam
);
switch
(
msg
)
{
case
WM_INITDIALOG
:
...
...
@@ -417,10 +417,10 @@ static INT_PTR CALLBACK list_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM
static
void
dump_joy_state
(
DIJOYSTATE
*
st
)
{
int
i
;
TRACE
(
"Ax (% 5
d,% 5d,% 5
d)
\n
"
,
st
->
lX
,
st
->
lY
,
st
->
lZ
);
TRACE
(
"RAx (% 5
d,% 5d,% 5
d)
\n
"
,
st
->
lRx
,
st
->
lRy
,
st
->
lRz
);
TRACE
(
"Slider (% 5
d,% 5
d)
\n
"
,
st
->
rglSlider
[
0
],
st
->
rglSlider
[
1
]);
TRACE
(
"Pov (% 5
d,% 5d,% 5d,% 5
d)
\n
"
,
st
->
rgdwPOV
[
0
],
st
->
rgdwPOV
[
1
],
st
->
rgdwPOV
[
2
],
st
->
rgdwPOV
[
3
]);
TRACE
(
"Ax (% 5
ld,% 5ld,% 5l
d)
\n
"
,
st
->
lX
,
st
->
lY
,
st
->
lZ
);
TRACE
(
"RAx (% 5
ld,% 5ld,% 5l
d)
\n
"
,
st
->
lRx
,
st
->
lRy
,
st
->
lRz
);
TRACE
(
"Slider (% 5
ld,% 5l
d)
\n
"
,
st
->
rglSlider
[
0
],
st
->
rglSlider
[
1
]);
TRACE
(
"Pov (% 5
ld,% 5ld,% 5ld,% 5l
d)
\n
"
,
st
->
rgdwPOV
[
0
],
st
->
rgdwPOV
[
1
],
st
->
rgdwPOV
[
2
],
st
->
rgdwPOV
[
3
]);
TRACE
(
"Buttons "
);
for
(
i
=
0
;
i
<
TEST_MAX_BUTTONS
;
i
++
)
...
...
@@ -616,7 +616,7 @@ static INT_PTR CALLBACK test_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM
{
static
HANDLE
thread
;
static
struct
JoystickData
*
data
;
TRACE
(
"(%p, 0x%08x/%d, 0x%
l
x)
\n
"
,
hwnd
,
msg
,
msg
,
lparam
);
TRACE
(
"(%p, 0x%08x/%d, 0x%
I
x)
\n
"
,
hwnd
,
msg
,
msg
,
lparam
);
switch
(
msg
)
{
...
...
@@ -876,7 +876,7 @@ static BOOL CALLBACK ff_effects_callback(const DIEFFECTINFOW *pdei, void *pvRef)
if
(
FAILED
(
hr
))
{
FIXME
(
"Failed to create effect with type %s, hr %#x
\n
"
,
debugstr_guid
(
&
pdei
->
guid
),
hr
);
FIXME
(
"Failed to create effect with type %s, hr %#
l
x
\n
"
,
debugstr_guid
(
&
pdei
->
guid
),
hr
);
return
DIENUM_CONTINUE
;
}
...
...
@@ -903,7 +903,7 @@ static INT_PTR CALLBACK ff_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lp
{
static
HANDLE
thread
;
static
struct
JoystickData
*
data
;
TRACE
(
"(%p, 0x%08x/%d, 0x%
l
x)
\n
"
,
hwnd
,
msg
,
msg
,
lparam
);
TRACE
(
"(%p, 0x%08x/%d, 0x%
I
x)
\n
"
,
hwnd
,
msg
,
msg
,
lparam
);
switch
(
msg
)
{
...
...
@@ -973,7 +973,7 @@ static INT_PTR CALLBACK ff_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lp
*/
static
int
CALLBACK
propsheet_callback
(
HWND
hwnd
,
UINT
msg
,
LPARAM
lparam
)
{
TRACE
(
"(%p, 0x%08x/%d, 0x%
l
x)
\n
"
,
hwnd
,
msg
,
msg
,
lparam
);
TRACE
(
"(%p, 0x%08x/%d, 0x%
I
x)
\n
"
,
hwnd
,
msg
,
msg
,
lparam
);
switch
(
msg
)
{
case
PSCB_INITIALIZED
:
...
...
@@ -1060,7 +1060,7 @@ static void display_cpl_sheets(HWND parent, struct JoystickData *data)
LONG
CALLBACK
CPlApplet
(
HWND
hwnd
,
UINT
command
,
LPARAM
lParam1
,
LPARAM
lParam2
)
{
static
struct
JoystickData
data
;
TRACE
(
"(%p, %u, 0x%
lx, 0x%l
x)
\n
"
,
hwnd
,
command
,
lParam1
,
lParam2
);
TRACE
(
"(%p, %u, 0x%
Ix, 0x%I
x)
\n
"
,
hwnd
,
command
,
lParam1
,
lParam2
);
switch
(
command
)
{
...
...
@@ -1073,7 +1073,7 @@ LONG CALLBACK CPlApplet(HWND hwnd, UINT command, LPARAM lParam1, LPARAM lParam2)
if
(
FAILED
(
hr
))
{
ERR
(
"Failed to initialize DirectInput: 0x%08x
\n
"
,
hr
);
ERR
(
"Failed to initialize DirectInput: 0x%08
l
x
\n
"
,
hr
);
return
FALSE
;
}
...
...
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