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
3438512f
Commit
3438512f
authored
Oct 11, 2006
by
Michael Ploujnikov
Committed by
Alexandre Julliard
Oct 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Win64 printf format warning fixes.
parent
d7c0a0e3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
Makefile.in
dlls/dinput/tests/Makefile.in
+0
-1
joystick.c
dlls/dinput/tests/joystick.c
+6
-6
keyboard.c
dlls/dinput/tests/keyboard.c
+2
-2
mouse.c
dlls/dinput/tests/mouse.c
+1
-1
No files found.
dlls/dinput/tests/Makefile.in
View file @
3438512f
...
...
@@ -5,7 +5,6 @@ VPATH = @srcdir@
TESTDLL
=
dinput.dll
IMPORTS
=
dinput ole32 version user32 kernel32
EXTRALIBS
=
-ldxguid
-luuid
-ldxerr8
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
CTESTS
=
\
joystick.c
\
...
...
dlls/dinput/tests/joystick.c
View file @
3438512f
...
...
@@ -141,7 +141,7 @@ static BOOL CALLBACK EnumJoysticks(
HWND
hWnd
=
get_hwnd
();
char
oldstate
[
248
],
curstate
[
248
];
ok
(
data
->
version
>
0x0300
,
"Joysticks not supported in version 0x%04
l
x
\n
"
,
data
->
version
);
ok
(
data
->
version
>
0x0300
,
"Joysticks not supported in version 0x%04x
\n
"
,
data
->
version
);
hr
=
IDirectInput_CreateDevice
(
data
->
pDI
,
&
lpddi
->
guidInstance
,
NULL
,
NULL
);
ok
(
hr
==
E_POINTER
,
"IDirectInput_CreateDevice() should have returned "
...
...
@@ -270,8 +270,8 @@ static BOOL CALLBACK EnumJoysticks(
DXGetErrorString8
(
hr
));
if
(
hr
!=
DI_OK
)
break
;
sprintf
(
curstate
,
"X%5
ld Y%5ld Z%5ld Rx%5ld Ry%5ld Rz%5l
d "
"S0%5
ld S1%5ld POV0%5ld POV1%5ld POV2%5ld POV3%5l
d "
sprintf
(
curstate
,
"X%5
d Y%5d Z%5d Rx%5d Ry%5d Rz%5
d "
"S0%5
d S1%5d POV0%5d POV1%5d POV2%5d POV3%5
d "
"B %d %d %d %d %d %d %d %d %d %d %d %d
\n
"
,
js
.
lX
,
js
.
lY
,
js
.
lZ
,
js
.
lRx
,
js
.
lRy
,
js
.
lRz
,
js
.
rglSlider
[
0
],
js
.
rglSlider
[
1
],
...
...
@@ -295,7 +295,7 @@ static BOOL CALLBACK EnumJoysticks(
RELEASE:
ref
=
IDirectInputDevice_Release
(
pJoystick
);
ok
(
ref
==
0
,
"IDirectInputDevice_Release() reference count = %
l
d
\n
"
,
ref
);
ok
(
ref
==
0
,
"IDirectInputDevice_Release() reference count = %d
\n
"
,
ref
);
DONE:
return
DIENUM_CONTINUE
;
...
...
@@ -308,7 +308,7 @@ static void joystick_tests(DWORD version)
ULONG
ref
;
HINSTANCE
hInstance
=
GetModuleHandle
(
NULL
);
trace
(
"-- Testing Direct Input Version 0x%04
l
x --
\n
"
,
version
);
trace
(
"-- Testing Direct Input Version 0x%04x --
\n
"
,
version
);
hr
=
DirectInputCreate
(
hInstance
,
version
,
&
pDI
,
NULL
);
ok
(
hr
==
DI_OK
||
hr
==
DIERR_OLDDIRECTINPUTVERSION
,
"DirectInputCreate() failed: %s
\n
"
,
DXGetErrorString8
(
hr
));
...
...
@@ -321,7 +321,7 @@ static void joystick_tests(DWORD version)
ok
(
hr
==
DI_OK
,
"IDirectInput_EnumDevices() failed: %s
\n
"
,
DXGetErrorString8
(
hr
));
ref
=
IDirectInput_Release
(
pDI
);
ok
(
ref
==
0
,
"IDirectInput_Release() reference count = %
l
d
\n
"
,
ref
);
ok
(
ref
==
0
,
"IDirectInput_Release() reference count = %d
\n
"
,
ref
);
}
else
if
(
hr
==
DIERR_OLDDIRECTINPUTVERSION
)
trace
(
" Version Not Supported
\n
"
);
}
...
...
dlls/dinput/tests/keyboard.c
View file @
3438512f
...
...
@@ -48,7 +48,7 @@ const char * get_file_version(const char * file_name)
VS_FIXEDFILEINFO
*
pFixedVersionInfo
;
UINT
len
;
if
(
VerQueryValueA
(
data
,
backslash
,
(
LPVOID
*
)
&
pFixedVersionInfo
,
&
len
))
{
sprintf
(
version
,
"%
ld.%ld.%ld.%l
d"
,
sprintf
(
version
,
"%
d.%d.%d.%
d"
,
pFixedVersionInfo
->
dwFileVersionMS
>>
16
,
pFixedVersionInfo
->
dwFileVersionMS
&
0xffff
,
pFixedVersionInfo
->
dwFileVersionLS
>>
16
,
...
...
@@ -105,7 +105,7 @@ static void keyboard_tests(DWORD version)
ok
(
SUCCEEDED
(
hr
),
"IDirectInputDevice_GetDeviceState() failed: %s
\n
"
,
DXGetErrorString8
(
hr
));
ref
=
IDirectInput_Release
(
pDI
);
ok
(
!
ref
,
"IDirectInput_Release() reference count = %
l
d
\n
"
,
ref
);
ok
(
!
ref
,
"IDirectInput_Release() reference count = %d
\n
"
,
ref
);
}
START_TEST
(
keyboard
)
...
...
dlls/dinput/tests/mouse.c
View file @
3438512f
...
...
@@ -83,7 +83,7 @@ static void mouse_tests(void)
hwnd
=
CreateWindow
(
"static"
,
"Title"
,
WS_OVERLAPPEDWINDOW
,
10
,
10
,
200
,
200
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"err: %
l
d
\n
"
,
GetLastError
());
ok
(
hwnd
!=
NULL
,
"err: %d
\n
"
,
GetLastError
());
if
(
!
hwnd
)
return
;
ShowWindow
(
hwnd
,
SW_SHOW
);
...
...
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