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
08332f4d
Commit
08332f4d
authored
Feb 17, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prntvpt: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
55f0f125
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
Makefile.in
dlls/prntvpt/Makefile.in
+0
-1
main.c
dlls/prntvpt/main.c
+2
-2
ticket.c
dlls/prntvpt/ticket.c
+7
-7
No files found.
dlls/prntvpt/Makefile.in
View file @
08332f4d
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
prntvpt.dll
IMPORTLIB
=
prntvpt
IMPORTS
=
winspool ole32 oleaut32
...
...
dlls/prntvpt/main.c
View file @
08332f4d
...
...
@@ -76,7 +76,7 @@ HRESULT WINAPI PTOpenProvider(PCWSTR printer, DWORD version, HPTPROVIDER *provid
{
DWORD
used_version
;
TRACE
(
"%s, %d, %p
\n
"
,
debugstr_w
(
printer
),
version
,
provider
);
TRACE
(
"%s, %
l
d, %p
\n
"
,
debugstr_w
(
printer
),
version
,
provider
);
if
(
version
!=
1
)
return
E_INVALIDARG
;
...
...
@@ -87,7 +87,7 @@ HRESULT WINAPI PTOpenProviderEx(const WCHAR *printer, DWORD max_version, DWORD p
{
struct
prn_provider
*
prov
;
TRACE
(
"%s, %
d, %
d, %p, %p
\n
"
,
debugstr_w
(
printer
),
max_version
,
pref_version
,
provider
,
used_version
);
TRACE
(
"%s, %
ld, %l
d, %p, %p
\n
"
,
debugstr_w
(
printer
),
max_version
,
pref_version
,
provider
,
used_version
);
if
(
!
max_version
||
!
provider
||
!
used_version
)
return
E_INVALIDARG
;
...
...
dlls/prntvpt/ticket.c
View file @
08332f4d
...
...
@@ -574,7 +574,7 @@ static void set_SelectionNamespaces(IXMLDOMDocument2 *doc)
{
if
(
!
wcscmp
(
str
,
L"xmlns"
)
||
!
wcsncmp
(
str
,
L"xmlns:"
,
6
))
{
TRACE
(
"ns[%d]: %s=%s
\n
"
,
i
,
wine_dbgstr_w
(
str
),
wine_dbgstr_w
(
V_BSTR
(
&
var
)));
TRACE
(
"ns[%
l
d]: %s=%s
\n
"
,
i
,
wine_dbgstr_w
(
str
),
wine_dbgstr_w
(
V_BSTR
(
&
var
)));
IStream_Write
(
stream
,
str
,
wcslen
(
str
)
*
sizeof
(
WCHAR
),
NULL
);
IStream_Write
(
stream
,
L"=
\"
"
,
2
*
sizeof
(
WCHAR
),
NULL
);
IStream_Write
(
stream
,
V_BSTR
(
&
var
),
wcslen
(
V_BSTR
(
&
var
))
*
sizeof
(
WCHAR
),
NULL
);
...
...
@@ -1174,7 +1174,7 @@ while (0)
CHECK_FIELD
(
DM_DITHERTYPE
);
CHECK_FIELD
(
DM_PANNINGWIDTH
);
CHECK_FIELD
(
DM_PANNINGHEIGHT
);
if
(
fields
)
TRACE
(
" %#x"
,
fields
);
if
(
fields
)
TRACE
(
" %#
l
x"
,
fields
);
TRACE
(
"
\n
"
);
#undef CHECK_FIELD
}
...
...
@@ -1192,7 +1192,7 @@ static void dump_devmode(const DEVMODEW *dm)
TRACE
(
"dmDriverVersion: 0x%04x
\n
"
,
dm
->
dmDriverVersion
);
TRACE
(
"dmSize: 0x%04x
\n
"
,
dm
->
dmSize
);
TRACE
(
"dmDriverExtra: 0x%04x
\n
"
,
dm
->
dmDriverExtra
);
TRACE
(
"dmFields: 0x%04x
\n
"
,
dm
->
dmFields
);
TRACE
(
"dmFields: 0x%04
l
x
\n
"
,
dm
->
dmFields
);
dump_fields
(
dm
->
dmFields
);
TRACE
(
"dmOrientation: %d
\n
"
,
dm
->
u1
.
s1
.
dmOrientation
);
TRACE
(
"dmPaperSize: %d
\n
"
,
dm
->
u1
.
s1
.
dmPaperSize
);
...
...
@@ -1209,9 +1209,9 @@ static void dump_devmode(const DEVMODEW *dm)
TRACE
(
"dmCollate: %d
\n
"
,
dm
->
dmCollate
);
TRACE
(
"dmFormName: %s
\n
"
,
debugstr_w
(
dm
->
dmFormName
));
TRACE
(
"dmLogPixels %u
\n
"
,
dm
->
dmLogPixels
);
TRACE
(
"dmBitsPerPel %u
\n
"
,
dm
->
dmBitsPerPel
);
TRACE
(
"dmPelsWidth %u
\n
"
,
dm
->
dmPelsWidth
);
TRACE
(
"dmPelsHeight %u
\n
"
,
dm
->
dmPelsHeight
);
TRACE
(
"dmBitsPerPel %
l
u
\n
"
,
dm
->
dmBitsPerPel
);
TRACE
(
"dmPelsWidth %
l
u
\n
"
,
dm
->
dmPelsWidth
);
TRACE
(
"dmPelsHeight %
l
u
\n
"
,
dm
->
dmPelsHeight
);
}
HRESULT
WINAPI
PTConvertDevModeToPrintTicket
(
HPTPROVIDER
provider
,
ULONG
size
,
PDEVMODEW
dm
,
...
...
@@ -1221,7 +1221,7 @@ HRESULT WINAPI PTConvertDevModeToPrintTicket(HPTPROVIDER provider, ULONG size, P
struct
ticket
ticket
;
HRESULT
hr
;
TRACE
(
"%p,%u,%p,%d,%p
\n
"
,
provider
,
size
,
dm
,
scope
,
stream
);
TRACE
(
"%p,%
l
u,%p,%d,%p
\n
"
,
provider
,
size
,
dm
,
scope
,
stream
);
if
(
!
is_valid_provider
(
provider
)
||
!
dm
||
!
stream
)
return
E_INVALIDARG
;
...
...
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