mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
This should do it for pen. Tested the same with wine tests.
svn path=/trunk/; revision=33858
This commit is contained in:
parent
e61ef65c4a
commit
6378983897
1 changed files with 5 additions and 6 deletions
|
@ -177,11 +177,7 @@ IntGdiExtCreatePen(
|
|||
|
||||
ExitCleanup:
|
||||
SetLastWin32Error(ERROR_INVALID_PARAMETER);
|
||||
if (PenObject->pStyle)
|
||||
{
|
||||
ExFreePool(PenObject->pStyle);
|
||||
PenObject->pStyle = NULL;
|
||||
}
|
||||
PenObject->pStyle = NULL;
|
||||
PENOBJ_UnlockPen(PenObject);
|
||||
if (bOldStylePen)
|
||||
PENOBJ_FreePenByHandle(hPen);
|
||||
|
@ -343,7 +339,10 @@ NtGdiExtCreatePen(
|
|||
cjDIB,
|
||||
bOldStylePen,
|
||||
hBrush);
|
||||
|
||||
if (!hPen && pSafeStyle)
|
||||
{
|
||||
ExFreePool(pSafeStyle);
|
||||
}
|
||||
return hPen;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue