Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
54b6a42a
Commit
54b6a42a
authored
Jan 06, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Change twain.h to use LONG/ULONG for Win64 compatibility.
Also fix the compiler warnings introduced by this change.
parent
9896cb4e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
capability.c
dlls/gphoto2.ds/capability.c
+3
-3
gphoto2_main.c
dlls/gphoto2.ds/gphoto2_main.c
+3
-3
sane_main.c
dlls/sane.ds/sane_main.c
+1
-1
twain32_main.c
dlls/twain_32/twain32_main.c
+3
-3
twain.h
include/twain.h
+2
-2
No files found.
dlls/gphoto2.ds/capability.c
View file @
54b6a42a
...
...
@@ -195,7 +195,7 @@ static TW_BOOL GPHOTO2_OneValueSet32 (pTW_CAPABILITY pCapability, TW_UINT32 valu
{
pCapability
->
hContainer
=
GlobalAlloc
(
0
,
sizeof
(
TW_ONEVALUE
));
TRACE
(
"-> %
l
d
\n
"
,
value
);
TRACE
(
"-> %d
\n
"
,
value
);
if
(
pCapability
->
hContainer
)
{
...
...
@@ -258,7 +258,7 @@ static TW_BOOL GPHOTO2_EnumGet16 (pTW_CAPABILITY pCapability, int *nrofvalues, T
*
nrofvalues
=
pVal
->
NumItems
;
*
values
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
TW_UINT16
)
*
pVal
->
NumItems
);
memcpy
(
*
values
,
pVal
->
ItemList
,
sizeof
(
TW_UINT16
)
*
(
*
nrofvalues
));
FIXME
(
"Current Index %
ld, Default Index %l
d
\n
"
,
pVal
->
CurrentIndex
,
pVal
->
DefaultIndex
);
FIXME
(
"Current Index %
d, Default Index %
d
\n
"
,
pVal
->
CurrentIndex
,
pVal
->
DefaultIndex
);
GlobalUnlock
(
pCapability
->
hContainer
);
return
TRUE
;
}
...
...
@@ -310,7 +310,7 @@ static TW_UINT16 GPHOTO2_ICAPXferMech (pTW_CAPABILITY pCapability, TW_UINT16 act
if
(
!
GPHOTO2_OneValueGet32
(
pCapability
,
&
xfermechtemp
))
return
TWCC_LOWMEMORY
;
activeDS
.
capXferMech
=
xfermechtemp
;
TRACE
(
"xfermech is %l
d
\n
"
,
xfermechtemp
);
TRACE
(
"xfermech is %
d
\n
"
,
xfermechtemp
);
return
TWCC_SUCCESS
;
}
else
if
(
pCapability
->
ConType
==
TWON_ENUMERATION
)
...
...
dlls/gphoto2.ds/gphoto2_main.c
View file @
54b6a42a
...
...
@@ -343,7 +343,7 @@ static TW_UINT16 GPHOTO2_PendingXfersEndXfer (pTW_IDENTITY pOrigin,
if
(
file
->
download
)
count
++
;
}
TRACE
(
"count = %
l
d
\n
"
,
count
);
TRACE
(
"count = %d
\n
"
,
count
);
pPendingXfers
->
Count
=
count
;
if
(
pPendingXfers
->
Count
!=
0
)
{
activeDS
.
currentState
=
6
;
...
...
@@ -379,7 +379,7 @@ static TW_UINT16 GPHOTO2_PendingXfersGet (pTW_IDENTITY pOrigin,
if
(
file
->
download
)
count
++
;
}
TRACE
(
"count = %
l
d
\n
"
,
count
);
TRACE
(
"count = %d
\n
"
,
count
);
pPendingXfers
->
Count
=
count
;
activeDS
.
twCC
=
TWCC_SUCCESS
;
return
TWRC_SUCCESS
;
...
...
@@ -1002,7 +1002,7 @@ DS_Entry ( pTW_IDENTITY pOrigin,
{
TW_UINT16
twRC
=
TWRC_SUCCESS
;
/* Return Code */
TRACE
(
"(DG=%
l
d DAT=%d MSG=%d)
\n
"
,
DG
,
DAT
,
MSG
);
TRACE
(
"(DG=%d DAT=%d MSG=%d)
\n
"
,
DG
,
DAT
,
MSG
);
switch
(
DG
)
{
...
...
dlls/sane.ds/sane_main.c
View file @
54b6a42a
...
...
@@ -543,7 +543,7 @@ DS_Entry ( pTW_IDENTITY pOrigin,
{
TW_UINT16
twRC
=
TWRC_SUCCESS
;
/* Return Code */
TRACE
(
"(DG=%
l
d DAT=%d MSG=%d)
\n
"
,
DG
,
DAT
,
MSG
);
TRACE
(
"(DG=%d DAT=%d MSG=%d)
\n
"
,
DG
,
DAT
,
MSG
);
switch
(
DG
)
{
...
...
dlls/twain_32/twain32_main.c
View file @
54b6a42a
...
...
@@ -159,7 +159,7 @@ DSM_Entry (pTW_IDENTITY pOrigin,
{
TW_UINT16
twRC
=
TWRC_SUCCESS
;
/* Return Code */
TRACE
(
"(DG=%
l
d DAT=%d MSG=%d)
\n
"
,
DG
,
DAT
,
MSG
);
TRACE
(
"(DG=%d DAT=%d MSG=%d)
\n
"
,
DG
,
DAT
,
MSG
);
if
(
pDest
)
{
...
...
@@ -172,7 +172,7 @@ DSM_Entry (pTW_IDENTITY pOrigin,
return
TWRC_FAILURE
;
}
DSM_twCC
=
TWCC_SUCCESS
;
TRACE
(
"Forwarding %l
d/%d/%d/%p to DS.
\n
"
,
DG
,
DAT
,
MSG
,
pData
);
TRACE
(
"Forwarding %
d/%d/%d/%p to DS.
\n
"
,
DG
,
DAT
,
MSG
,
pData
);
twRC
=
pSource
->
dsEntry
(
pOrigin
,
DG
,
DAT
,
MSG
,
pData
);
TRACE
(
"return value is %d
\n
"
,
twRC
);
return
twRC
;
...
...
@@ -183,7 +183,7 @@ DSM_Entry (pTW_IDENTITY pOrigin,
twRC
=
TWAIN_SourceManagerHandler
(
pOrigin
,
DAT
,
MSG
,
pData
);
break
;
default:
FIXME
(
"The DSM does not handle DG %l
d
\n
"
,
DG
);
FIXME
(
"The DSM does not handle DG %
d
\n
"
,
DG
);
DSM_twCC
=
TWCC_BADPROTOCOL
;
twRC
=
TWRC_FAILURE
;
}
...
...
include/twain.h
View file @
54b6a42a
...
...
@@ -127,10 +127,10 @@ typedef char TW_STR255[256], FAR *pTW_STR255;
/* Numeric types. */
typedef
char
TW_INT8
,
FAR
*
pTW_INT8
;
typedef
short
TW_INT16
,
FAR
*
pTW_INT16
;
typedef
long
TW_INT32
,
FAR
*
pTW_INT32
;
typedef
LONG
TW_INT32
,
FAR
*
pTW_INT32
;
typedef
unsigned
char
TW_UINT8
,
FAR
*
pTW_UINT8
;
typedef
unsigned
short
TW_UINT16
,
FAR
*
pTW_UINT16
;
typedef
unsigned
long
TW_UINT32
,
FAR
*
pTW_UINT32
;
typedef
ULONG
TW_UINT32
,
FAR
*
pTW_UINT32
;
typedef
unsigned
short
TW_BOOL
,
FAR
*
pTW_BOOL
;
/* Fixed point structure type. */
...
...
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