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
2702da69
Commit
2702da69
authored
Dec 10, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Fix a compiler warning.
parent
85e87ae8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
wordpad.c
programs/wordpad/wordpad.c
+4
-2
No files found.
programs/wordpad/wordpad.c
View file @
2702da69
...
...
@@ -724,7 +724,7 @@ static void set_default_font(void)
SendMessageW
(
hEditorWnd
,
EM_SETCHARFORMAT
,
SCF_DEFAULT
,
(
LPARAM
)
&
fmt
);
}
static
void
add_font
(
LPWSTR
fontName
,
DWORD
fontType
,
HWND
hListWnd
,
NEWTEXTMETRICEXW
*
ntmc
)
static
void
add_font
(
LP
C
WSTR
fontName
,
DWORD
fontType
,
HWND
hListWnd
,
NEWTEXTMETRICEXW
*
ntmc
)
{
COMBOBOXEXITEMW
cbItem
;
WCHAR
buffer
[
MAX_PATH
];
...
...
@@ -742,7 +742,8 @@ static void add_font(LPWSTR fontName, DWORD fontType, HWND hListWnd, NEWTEXTMETR
else
break
;
}
cbItem
.
pszText
=
fontName
;
cbItem
.
pszText
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
lstrlenW
(
fontName
)
+
1
)
*
sizeof
(
WCHAR
)
);
lstrcpyW
(
cbItem
.
pszText
,
fontName
);
cbItem
.
mask
|=
CBEIF_LPARAM
;
if
(
fontType
&
RASTER_FONTTYPE
)
...
...
@@ -750,6 +751,7 @@ static void add_font(LPWSTR fontName, DWORD fontType, HWND hListWnd, NEWTEXTMETR
cbItem
.
lParam
=
MAKELONG
(
fontType
,
fontHeight
);
SendMessageW
(
hListWnd
,
CBEM_INSERTITEMW
,
0
,
(
LPARAM
)
&
cbItem
);
HeapFree
(
GetProcessHeap
(),
0
,
cbItem
.
pszText
);
}
static
void
dialog_choose_font
(
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