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
7e245060
Commit
7e245060
authored
Jul 03, 2008
by
Adam Petaccia
Committed by
Alexandre Julliard
Jul 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Valgrind: fix warnings about using uninitialized memory, and leaking memory.
parent
f3b14ac7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
font.c
dlls/gdiplus/font.c
+3
-0
font.c
dlls/gdiplus/tests/font.c
+2
-0
No files found.
dlls/gdiplus/font.c
View file @
7e245060
...
@@ -370,6 +370,9 @@ GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR *name,
...
@@ -370,6 +370,9 @@ GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR *name,
hdc
=
GetDC
(
0
);
hdc
=
GetDC
(
0
);
lstrcpynW
(
lfw
.
lfFaceName
,
name
,
sizeof
(
WCHAR
)
*
LF_FACESIZE
);
lstrcpynW
(
lfw
.
lfFaceName
,
name
,
sizeof
(
WCHAR
)
*
LF_FACESIZE
);
lfw
.
lfCharSet
=
DEFAULT_CHARSET
;
lfw
.
lfEscapement
=
lfw
.
lfOrientation
=
0
;
hFont
=
CreateFontIndirectW
(
&
lfw
);
hFont
=
CreateFontIndirectW
(
&
lfw
);
hfont_old
=
SelectObject
(
hdc
,
hFont
);
hfont_old
=
SelectObject
(
hdc
,
hFont
);
...
...
dlls/gdiplus/tests/font.c
View file @
7e245060
...
@@ -76,6 +76,8 @@ static void test_createfont(void)
...
@@ -76,6 +76,8 @@ static void test_createfont(void)
expect
(
i
,
unit
);
expect
(
i
,
unit
);
GdipDeleteFont
(
font
);
GdipDeleteFont
(
font
);
}
}
GdipDeleteFontFamily
(
fontfamily
);
}
}
static
void
test_logfont
(
void
)
static
void
test_logfont
(
void
)
...
...
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