mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 08:49:15 +00:00
start: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cd82a649aa
commit
414fe80aeb
2 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue