msvfw32: 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:
Michael Stefaniuc 2018-08-08 11:30:08 +02:00 committed by Alexandre Julliard
parent 17294a6b05
commit 84cec28928
2 changed files with 2 additions and 4 deletions

View File

@ -1006,8 +1006,7 @@ end_of_mci_open:
cmdW = (LPWSTR)lParam; cmdW = (LPWSTR)lParam;
mwi->lasterror = mciSendStringW(cmdW, mwi->return_string, mwi->lasterror = mciSendStringW(cmdW, mwi->return_string,
sizeof(mwi->return_string)/sizeof(mwi->return_string[0]), ARRAY_SIZE(mwi->return_string), 0);
0);
if (mwi->lasterror) if (mwi->lasterror)
MCIWND_notify_error(mwi); MCIWND_notify_error(mwi);

View File

@ -319,8 +319,7 @@ static BOOL ICInfo_enum_handler(const char *name, const char *driver, unsigned i
lpicinfo->dwVersionICM = ICVERSION; lpicinfo->dwVersionICM = ICVERSION;
lpicinfo->szName[0] = 0; lpicinfo->szName[0] = 0;
lpicinfo->szDescription[0] = 0; lpicinfo->szDescription[0] = 0;
MultiByteToWideChar(CP_ACP, 0, driver, -1, lpicinfo->szDriver, MultiByteToWideChar(CP_ACP, 0, driver, -1, lpicinfo->szDriver, ARRAY_SIZE(lpicinfo->szDriver));
sizeof(lpicinfo->szDriver)/sizeof(WCHAR));
return TRUE; return TRUE;
} }