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
02efd4bb
Commit
02efd4bb
authored
Jun 22, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jun 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Fix erroneous pen error checking.
parent
6baacf61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
pen.c
dlls/gdiplus/pen.c
+5
-4
No files found.
dlls/gdiplus/pen.c
View file @
02efd4bb
...
...
@@ -33,8 +33,11 @@ GpStatus WINGDIPAPI GdipCreatePen1(ARGB color, FLOAT width, GpUnit unit,
LOGBRUSH
lb
;
GpPen
*
gp_pen
;
if
(
!
pen
)
return
InvalidParameter
;
gp_pen
=
GdipAlloc
(
sizeof
(
GpPen
));
if
(
!
pen
)
return
OutOfMemory
;
if
(
!
gp_
pen
)
return
OutOfMemory
;
gp_pen
->
style
=
GP_DEFAULT_PENSTYLE
;
gp_pen
->
color
=
ARGB2COLORREF
(
color
);
...
...
@@ -51,12 +54,10 @@ GpStatus WINGDIPAPI GdipCreatePen1(ARGB color, FLOAT width, GpUnit unit,
0
,
NULL
);
}
else
{
FIXME
(
"UnitWorld, UnitPixel only supported units
\n
"
);
GdipFree
(
gp_pen
);
return
NotImplemented
;
}
if
(
!
gp_pen
)
return
GenericError
;
*
pen
=
gp_pen
;
return
Ok
;
...
...
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