appwiz.cpl: Use the available ARRAY_SIZE() macro.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-03-29 17:14:13 +02:00 committed by Alexandre Julliard
parent e2dae70fe0
commit 30276291fa
2 changed files with 6 additions and 6 deletions

View File

@ -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);
}

View File

@ -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 );