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
8f420443
Commit
8f420443
authored
May 18, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Remove an ARRAY_SIZE()-like macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
48aeef69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
appdefaults.c
programs/winecfg/appdefaults.c
+3
-5
No files found.
programs/winecfg/appdefaults.c
View file @
8f420443
...
...
@@ -72,8 +72,6 @@ static const struct
#endif
};
#define NB_VERSIONS (sizeof(win_versions)/sizeof(win_versions[0]))
static
const
char
szKey9x
[]
=
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion"
;
static
const
char
szKeyNT
[]
=
"Software
\\
Microsoft
\\
Windows NT
\\
CurrentVersion"
;
static
const
char
szKeyProdNT
[]
=
"System
\\
CurrentControlSet
\\
Control
\\
ProductOptions"
;
...
...
@@ -113,7 +111,7 @@ static int get_registry_version(void)
}
major
=
atoi
(
ver
);
for
(
i
=
0
;
i
<
NB_VERSIONS
;
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
win_versions
)
;
i
++
)
{
if
(
win_versions
[
i
].
dwPlatformId
!=
platform
)
continue
;
if
(
win_versions
[
i
].
dwMajorVersion
!=
major
)
continue
;
...
...
@@ -151,7 +149,7 @@ static void update_comboboxes(HWND dialog)
WINE_TRACE
(
"winver is %s
\n
"
,
winver
);
/* normalize the version strings */
for
(
i
=
0
;
i
<
NB_VERSIONS
;
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
win_versions
)
;
i
++
)
{
if
(
!
strcasecmp
(
win_versions
[
i
].
szVersion
,
winver
))
{
...
...
@@ -181,7 +179,7 @@ init_comboboxes (HWND dialog)
SendDlgItemMessageW
(
dialog
,
IDC_WINVER
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
str
);
}
for
(
i
=
0
;
i
<
NB_VERSIONS
;
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
win_versions
)
;
i
++
)
{
SendDlgItemMessageA
(
dialog
,
IDC_WINVER
,
CB_ADDSTRING
,
0
,
(
LPARAM
)
win_versions
[
i
].
szDescription
);
...
...
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