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
30276291
Commit
30276291
authored
Mar 29, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appwiz.cpl: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e2dae70f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
addons.c
dlls/appwiz.cpl/addons.c
+2
-2
appwiz.c
dlls/appwiz.cpl/appwiz.c
+4
-4
No files found.
dlls/appwiz.cpl/addons.c
View file @
30276291
...
...
@@ -171,7 +171,7 @@ static void set_status(DWORD id)
HWND
status
=
GetDlgItem
(
install_dialog
,
ID_DWL_STATUS
);
WCHAR
buf
[
64
];
LoadStringW
(
hInst
,
id
,
buf
,
sizeof
(
buf
)
/
sizeof
(
WCHAR
));
LoadStringW
(
hInst
,
id
,
buf
,
ARRAY_SIZE
(
buf
));
SendMessageW
(
status
,
WM_SETTEXT
,
0
,
(
LPARAM
)
buf
);
}
...
...
@@ -514,7 +514,7 @@ static HRESULT WINAPI InstallCallback_OnStopBinding(IBindStatusCallback *iface,
}
else
{
WCHAR
message
[
256
];
if
(
LoadStringW
(
hInst
,
IDS_INVALID_SHA
,
message
,
sizeof
(
message
)
/
sizeof
(
WCHAR
)))
if
(
LoadStringW
(
hInst
,
IDS_INVALID_SHA
,
message
,
ARRAY_SIZE
(
message
)))
MessageBoxW
(
NULL
,
message
,
NULL
,
MB_ICONERROR
);
}
...
...
dlls/appwiz.cpl/appwiz.c
View file @
30276291
...
...
@@ -450,10 +450,10 @@ static void InstallProgram(HWND hWnd)
WCHAR
FilterBufferW
[
MAX_PATH
];
WCHAR
FileNameBufferW
[
MAX_PATH
];
LoadStringW
(
hInst
,
IDS_CPL_TITLE
,
titleW
,
sizeof
(
titleW
)
/
sizeof
(
WCHAR
));
LoadStringW
(
hInst
,
IDS_FILTER_INSTALLS
,
filter_installs
,
sizeof
(
filter_installs
)
/
sizeof
(
WCHAR
));
LoadStringW
(
hInst
,
IDS_FILTER_PROGRAMS
,
filter_programs
,
sizeof
(
filter_programs
)
/
sizeof
(
WCHAR
));
LoadStringW
(
hInst
,
IDS_FILTER_ALL
,
filter_all
,
sizeof
(
filter_all
)
/
sizeof
(
WCHAR
));
LoadStringW
(
hInst
,
IDS_CPL_TITLE
,
titleW
,
ARRAY_SIZE
(
titleW
));
LoadStringW
(
hInst
,
IDS_FILTER_INSTALLS
,
filter_installs
,
ARRAY_SIZE
(
filter_installs
));
LoadStringW
(
hInst
,
IDS_FILTER_PROGRAMS
,
filter_programs
,
ARRAY_SIZE
(
filter_programs
));
LoadStringW
(
hInst
,
IDS_FILTER_ALL
,
filter_all
,
ARRAY_SIZE
(
filter_all
));
snprintfW
(
FilterBufferW
,
MAX_PATH
,
filters
,
filter_installs
,
0
,
0
,
filter_programs
,
0
,
0
,
filter_all
,
0
,
0
);
...
...
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