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
69b335b5
Commit
69b335b5
authored
Dec 10, 2023
by
Fabian Maurer
Committed by
Alexandre Julliard
Dec 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Don't leak memory in error case (Coverity).
parent
1d412eac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
ps.c
dlls/wineps.drv/ps.c
+7
-5
No files found.
dlls/wineps.drv/ps.c
View file @
69b335b5
...
...
@@ -985,6 +985,12 @@ BOOL PSDRV_WriteDIBPatternDict(print_ctx *ctx, const BITMAPINFO *bmi, BYTE *bits
return
FALSE
;
}
if
(
usage
>
2
)
{
FIXME
(
"wrong usage: %d
\n
"
,
usage
);
return
FALSE
;
}
w
=
bmi
->
bmiHeader
.
biWidth
;
h
=
abs_height
;
...
...
@@ -1025,11 +1031,7 @@ BOOL PSDRV_WriteDIBPatternDict(print_ctx *ctx, const BITMAPINFO *bmi, BYTE *bits
map
[
0
]
=
GetTextColor
(
ctx
->
hdc
);
map
[
1
]
=
GetBkColor
(
ctx
->
hdc
);
}
else
{
FIXME
(
"wrong usage: %d
\n
"
,
usage
);
return
FALSE
;
}
PSDRV_WriteRGB
(
ctx
,
map
,
2
);
PSDRV_WriteIndexColorSpaceEnd
(
ctx
);
...
...
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