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
6b6e863c
Commit
6b6e863c
authored
Feb 17, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sane.ds: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6714a290
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
Makefile.in
dlls/sane.ds/Makefile.in
+0
-1
capability.c
dlls/sane.ds/capability.c
+6
-6
ds_ctrl.c
dlls/sane.ds/ds_ctrl.c
+1
-1
sane_main.c
dlls/sane.ds/sane_main.c
+2
-2
No files found.
dlls/sane.ds/Makefile.in
View file @
6b6e863c
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
sane.ds
UNIXLIB
=
sane.so
IMPORTS
=
comctl32 user32 gdi32
...
...
dlls/sane.ds/capability.c
View file @
6b6e863c
...
...
@@ -198,7 +198,7 @@ static TW_UINT16 SANE_ICAPXferMech (pTW_CAPABILITY pCapability, TW_UINT16 action
if
(
twCC
==
TWCC_SUCCESS
)
{
activeDS
.
capXferMech
=
(
TW_UINT16
)
val
;
FIXME
(
"Partial Stub: XFERMECH set to %d, but ignored
\n
"
,
val
);
FIXME
(
"Partial Stub: XFERMECH set to %
l
d, but ignored
\n
"
,
val
);
}
break
;
...
...
@@ -242,7 +242,7 @@ static TW_UINT16 SANE_CAPXferCount (pTW_CAPABILITY pCapability, TW_UINT16 action
case
MSG_SET
:
twCC
=
msg_set
(
pCapability
,
&
val
);
if
(
twCC
==
TWCC_SUCCESS
)
FIXME
(
"Partial Stub: XFERCOUNT set to %d, but ignored
\n
"
,
val
);
FIXME
(
"Partial Stub: XFERCOUNT set to %
l
d, but ignored
\n
"
,
val
);
break
;
case
MSG_GETDEFAULT
:
...
...
@@ -326,7 +326,7 @@ static TW_UINT16 SANE_ICAPPixelType (pTW_CAPABILITY pCapability, TW_UINT16 actio
twCC
=
msg_set
(
pCapability
,
&
val
);
if
(
twCC
==
TWCC_SUCCESS
)
{
TRACE
(
"Setting pixeltype to %d
\n
"
,
val
);
TRACE
(
"Setting pixeltype to %
l
d
\n
"
,
val
);
if
(
!
pixeltype_to_sane_mode
(
val
,
mode
,
sizeof
(
mode
)))
return
TWCC_BADVALUE
;
...
...
@@ -493,7 +493,7 @@ static TW_UINT16 SANE_ICAPCompression (pTW_CAPABILITY pCapability, TW_UINT16 act
case
MSG_SET
:
twCC
=
msg_set
(
pCapability
,
&
val
);
if
(
twCC
==
TWCC_SUCCESS
)
FIXME
(
"Partial Stub: COMPRESSION set to %d, but ignored
\n
"
,
val
);
FIXME
(
"Partial Stub: COMPRESSION set to %
l
d, but ignored
\n
"
,
val
);
break
;
case
MSG_GETDEFAULT
:
...
...
@@ -659,7 +659,7 @@ static TW_UINT16 SANE_ICAPPixelFlavor (pTW_CAPABILITY pCapability, TW_UINT16 act
twCC
=
msg_set
(
pCapability
,
&
val
);
if
(
twCC
==
TWCC_SUCCESS
)
{
FIXME
(
"Stub: PIXELFLAVOR set to %d, but ignored
\n
"
,
val
);
FIXME
(
"Stub: PIXELFLAVOR set to %
l
d, but ignored
\n
"
,
val
);
}
break
;
...
...
@@ -822,7 +822,7 @@ static TW_UINT16 SANE_ICAPSupportedSizes (pTW_CAPABILITY pCapability, TW_UINT16
if
(
supported_sizes
[
i
].
size
==
val
)
return
set_width_height
(
supported_sizes
[
i
].
x
,
supported_sizes
[
i
].
y
);
ERR
(
"Unsupported size %d
\n
"
,
val
);
ERR
(
"Unsupported size %
l
d
\n
"
,
val
);
twCC
=
TWCC_BADCAP
;
break
;
...
...
dlls/sane.ds/ds_ctrl.c
View file @
6b6e863c
...
...
@@ -176,7 +176,7 @@ TW_UINT16 SANE_ProcessEvent (pTW_IDENTITY pOrigin,
pTW_EVENT
pEvent
=
(
pTW_EVENT
)
pData
;
MSG
*
pMsg
=
pEvent
->
pEvent
;
TRACE
(
"DG_CONTROL/DAT_EVENT/MSG_PROCESSEVENT msg 0x%x, wParam 0x%
l
x
\n
"
,
pMsg
->
message
,
pMsg
->
wParam
);
TRACE
(
"DG_CONTROL/DAT_EVENT/MSG_PROCESSEVENT msg 0x%x, wParam 0x%
I
x
\n
"
,
pMsg
->
message
,
pMsg
->
wParam
);
activeDS
.
twCC
=
TWCC_SUCCESS
;
pEvent
->
TWMessage
=
MSG_NULL
;
/* no message to the application */
...
...
dlls/sane.ds/sane_main.c
View file @
6b6e863c
...
...
@@ -34,7 +34,7 @@ unixlib_handle_t sane_handle = 0;
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
TRACE
(
"%p,%x,%p
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
TRACE
(
"%p,%
l
x,%p
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
switch
(
fdwReason
)
{
...
...
@@ -333,7 +333,7 @@ DS_Entry ( pTW_IDENTITY pOrigin,
{
TW_UINT16
twRC
=
TWRC_SUCCESS
;
/* Return Code */
TRACE
(
"(DG=%d DAT=%d MSG=%d)
\n
"
,
DG
,
DAT
,
MSG
);
TRACE
(
"(DG=%
l
d DAT=%d MSG=%d)
\n
"
,
DG
,
DAT
,
MSG
);
switch
(
DG
)
{
...
...
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