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
c938f92e
Commit
c938f92e
authored
May 30, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Use nameless unions/structs.
parent
35299b39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
wordpad.c
programs/wordpad/wordpad.c
+6
-16
No files found.
programs/wordpad/wordpad.c
View file @
c938f92e
...
...
@@ -37,16 +37,6 @@
#include "wordpad.h"
#ifdef NONAMELESSUNION
# define U(x) (x).u
# define U2(x) (x).u2
# define U3(x) (x).u3
#else
# define U(x) (x)
# define U2(x) (x)
# define U3(x) (x)
#endif
/* use LoadString */
static
const
WCHAR
wszAppTitle
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'W'
,
'o'
,
'r'
,
'd'
,
'p'
,
'a'
,
'd'
,
0
};
...
...
@@ -1180,7 +1170,7 @@ static void dialog_viewproperties(void)
psp
[
0
].
dwSize
=
sizeof
(
PROPSHEETPAGEW
);
psp
[
0
].
dwFlags
=
PSP_USETITLE
;
U
(
psp
[
0
])
.
pszTemplate
=
MAKEINTRESOURCEW
(
IDD_FORMATOPTS
);
psp
[
0
]
.
pszTemplate
=
MAKEINTRESOURCEW
(
IDD_FORMATOPTS
);
psp
[
0
].
pfnDlgProc
=
formatopts_proc
;
psp
[
0
].
hInstance
=
hInstance
;
psp
[
0
].
lParam
=
reg_formatindex
(
SF_TEXT
);
...
...
@@ -1190,7 +1180,7 @@ static void dialog_viewproperties(void)
{
psp
[
i
].
dwSize
=
psp
[
0
].
dwSize
;
psp
[
i
].
dwFlags
=
psp
[
0
].
dwFlags
;
U
(
psp
[
i
]).
pszTemplate
=
U
(
psp
[
0
])
.
pszTemplate
;
psp
[
i
].
pszTemplate
=
psp
[
0
]
.
pszTemplate
;
psp
[
i
].
pfnDlgProc
=
psp
[
0
].
pfnDlgProc
;
psp
[
i
].
hInstance
=
psp
[
0
].
hInstance
;
psp
[
i
].
lParam
=
reg_formatindex
(
SF_RTF
);
...
...
@@ -1204,13 +1194,13 @@ static void dialog_viewproperties(void)
psh
.
hInstance
=
hInstance
;
psh
.
pszCaption
=
MAKEINTRESOURCEW
(
STRING_VIEWPROPS_TITLE
);
psh
.
nPages
=
ARRAY_SIZE
(
psp
);
U3
(
psh
)
.
ppsp
=
ppsp
;
U
(
psh
)
.
pszIcon
=
MAKEINTRESOURCEW
(
IDI_WORDPAD
);
psh
.
ppsp
=
ppsp
;
psh
.
pszIcon
=
MAKEINTRESOURCEW
(
IDI_WORDPAD
);
if
(
fileFormat
&
SF_RTF
)
U2
(
psh
)
.
nStartPage
=
1
;
psh
.
nStartPage
=
1
;
else
U2
(
psh
)
.
nStartPage
=
0
;
psh
.
nStartPage
=
0
;
PropertySheetW
(
&
psh
);
set_bar_states
();
target_device
(
hMainWnd
,
wordWrap
[
reg_formatindex
(
fileFormat
)]);
...
...
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