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
414fe80a
Commit
414fe80a
authored
Jul 13, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cd82a649
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
startmenu.c
programs/explorer/startmenu.c
+1
-1
start.c
programs/start/start.c
+2
-4
No files found.
programs/explorer/startmenu.c
View file @
414fe80a
...
...
@@ -475,7 +475,7 @@ void do_startmenu(HWND hwnd)
if
(
SUCCEEDED
(
SHGetSpecialFolderLocation
(
NULL
,
CSIDL_CONTROLS
,
&
pidl
)))
add_shell_item
(
&
root_menu
,
pidl
);
LoadStringW
(
NULL
,
IDS_RUN
,
run_label
,
sizeof
(
run_label
)
/
sizeof
(
run_label
[
0
]
));
LoadStringW
(
NULL
,
IDS_RUN
,
run_label
,
ARRAY_SIZE
(
run_label
));
mii
.
cbSize
=
sizeof
(
mii
);
mii
.
fMask
=
MIIM_STRING
|
MIIM_ID
;
...
...
programs/start/start.c
View file @
414fe80a
...
...
@@ -100,8 +100,7 @@ static void fatal_string_error(int which, DWORD error_code, const WCHAR *filenam
{
WCHAR
msg
[
2048
];
if
(
!
LoadStringW
(
GetModuleHandleW
(
NULL
),
which
,
msg
,
sizeof
(
msg
)
/
sizeof
(
WCHAR
)))
if
(
!
LoadStringW
(
GetModuleHandleW
(
NULL
),
which
,
msg
,
ARRAY_SIZE
(
msg
)))
WINE_ERR
(
"LoadString failed, error %d
\n
"
,
GetLastError
());
fatal_error
(
msg
,
error_code
,
filename
);
...
...
@@ -111,8 +110,7 @@ static void fatal_string(int which)
{
WCHAR
msg
[
2048
];
if
(
!
LoadStringW
(
GetModuleHandleW
(
NULL
),
which
,
msg
,
sizeof
(
msg
)
/
sizeof
(
WCHAR
)))
if
(
!
LoadStringW
(
GetModuleHandleW
(
NULL
),
which
,
msg
,
ARRAY_SIZE
(
msg
)))
WINE_ERR
(
"LoadString failed, error %d
\n
"
,
GetLastError
());
output
(
msg
);
...
...
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