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
40774be8
Commit
40774be8
authored
Dec 04, 2003
by
Huw Davies
Committed by
Alexandre Julliard
Dec 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let PSDRV_WriteSpool cope with strings longer than 0xffff bytes.
parent
ed224b33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
ps.c
dlls/wineps/ps.c
+13
-2
psdrv.h
dlls/wineps/psdrv.h
+1
-1
No files found.
dlls/wineps/ps.c
View file @
40774be8
...
...
@@ -193,8 +193,10 @@ static const char psarraydef[] =
"/%s %d array def
\n
"
;
int
PSDRV_WriteSpool
(
PSDRV_PDEVICE
*
physDev
,
LPCSTR
lpData
,
WORD
cch
)
DWORD
PSDRV_WriteSpool
(
PSDRV_PDEVICE
*
physDev
,
LPCSTR
lpData
,
D
WORD
cch
)
{
int
num
,
num_left
=
cch
;
if
(
physDev
->
job
.
quiet
)
{
TRACE
(
"ignoring output
\n
"
);
return
0
;
...
...
@@ -204,7 +206,16 @@ int PSDRV_WriteSpool(PSDRV_PDEVICE *physDev, LPCSTR lpData, WORD cch)
if
(
!
PSDRV_StartPage
(
physDev
)
)
return
0
;
}
return
WriteSpool16
(
physDev
->
job
.
hJob
,
(
LPSTR
)
lpData
,
cch
);
do
{
num
=
min
(
num_left
,
0x8000
);
if
(
WriteSpool16
(
physDev
->
job
.
hJob
,
(
LPSTR
)
lpData
,
num
)
!=
num
)
return
0
;
lpData
+=
num
;
num_left
-=
num
;
}
while
(
num_left
);
return
cch
;
}
...
...
dlls/wineps/psdrv.h
View file @
40774be8
...
...
@@ -450,7 +450,7 @@ extern BOOL PSDRV_WriteBytes(PSDRV_PDEVICE *physDev, const BYTE *bytes, int numb
extern
BOOL
PSDRV_WriteDIBits16
(
PSDRV_PDEVICE
*
physDev
,
const
WORD
*
words
,
int
number
);
extern
BOOL
PSDRV_WriteDIBits24
(
PSDRV_PDEVICE
*
physDev
,
const
BYTE
*
bits
,
int
number
);
extern
BOOL
PSDRV_WriteDIBits32
(
PSDRV_PDEVICE
*
physDev
,
const
BYTE
*
bits
,
int
number
);
extern
int
PSDRV_WriteSpool
(
PSDRV_PDEVICE
*
physDev
,
LPCSTR
lpData
,
WORD
cch
);
extern
DWORD
PSDRV_WriteSpool
(
PSDRV_PDEVICE
*
physDev
,
LPCSTR
lpData
,
D
WORD
cch
);
extern
BOOL
PSDRV_WritePatternDict
(
PSDRV_PDEVICE
*
physDev
,
BITMAP
*
bm
,
BYTE
*
bits
);
extern
BOOL
PSDRV_WriteDIBPatternDict
(
PSDRV_PDEVICE
*
physDev
,
BITMAPINFO
*
bmi
,
UINT
usage
);
extern
BOOL
PSDRV_WriteArrayPut
(
PSDRV_PDEVICE
*
physDev
,
CHAR
*
pszArrayName
,
INT
nIndex
,
LONG
lCoord
);
...
...
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