Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a20f99b5
Commit
a20f99b5
authored
May 21, 2018
by
Hugh McMaster
Committed by
Alexandre Julliard
May 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Use the ARRAY_SIZE macro.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
73220a3d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
childwnd.c
programs/regedit/childwnd.c
+1
-1
listview.c
programs/regedit/listview.c
+1
-1
regedit.c
programs/regedit/regedit.c
+2
-2
No files found.
programs/regedit/childwnd.c
View file @
a20f99b5
...
...
@@ -138,7 +138,7 @@ static LPWSTR GetPathRoot(HWND hwndTV, HTREEITEM hItem, BOOL bFull) {
if
(
hRootKey
)
parts
[
1
]
=
GetRootKeyName
(
hRootKey
);
if
(
bFull
)
{
DWORD
dwSize
=
sizeof
(
text
)
/
sizeof
(
WCHAR
);
DWORD
dwSize
=
ARRAY_SIZE
(
text
);
GetComputerNameW
(
text
,
&
dwSize
);
parts
[
0
]
=
text
;
}
...
...
programs/regedit/listview.c
View file @
a20f99b5
...
...
@@ -241,7 +241,7 @@ static BOOL CreateListColumns(HWND hWndListView)
lvC
.
iSubItem
=
index
;
lvC
.
cx
=
default_column_widths
[
index
];
lvC
.
fmt
=
column_alignment
[
index
];
LoadStringW
(
hInst
,
IDS_LIST_COLUMN_FIRST
+
index
,
szText
,
sizeof
(
szText
)
/
sizeof
(
WCHAR
));
LoadStringW
(
hInst
,
IDS_LIST_COLUMN_FIRST
+
index
,
szText
,
ARRAY_SIZE
(
szText
));
if
(
ListView_InsertColumnW
(
hWndListView
,
index
,
&
lvC
)
==
-
1
)
return
FALSE
;
}
return
TRUE
;
...
...
programs/regedit/regedit.c
View file @
a20f99b5
...
...
@@ -74,7 +74,7 @@ void WINAPIV output_message(unsigned int id, ...)
WCHAR
fmt
[
1536
];
__ms_va_list
va_args
;
if
(
!
LoadStringW
(
GetModuleHandleW
(
NULL
),
id
,
fmt
,
sizeof
(
fmt
)
/
sizeof
(
*
fmt
)))
if
(
!
LoadStringW
(
GetModuleHandleW
(
NULL
),
id
,
fmt
,
ARRAY_SIZE
(
fmt
)))
{
WINE_FIXME
(
"LoadString failed with %d
\n
"
,
GetLastError
());
return
;
...
...
@@ -89,7 +89,7 @@ void WINAPIV error_exit(unsigned int id, ...)
WCHAR
fmt
[
1536
];
__ms_va_list
va_args
;
if
(
!
LoadStringW
(
GetModuleHandleW
(
NULL
),
id
,
fmt
,
sizeof
(
fmt
)
/
sizeof
(
*
fmt
)))
if
(
!
LoadStringW
(
GetModuleHandleW
(
NULL
),
id
,
fmt
,
ARRAY_SIZE
(
fmt
)))
{
WINE_FIXME
(
"LoadString failed with %u
\n
"
,
GetLastError
());
return
;
...
...
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