Commit 84cec289 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

msvfw32: Use the ARRAY_SIZE() macro.

parent 17294a6b
......@@ -1006,8 +1006,7 @@ end_of_mci_open:
cmdW = (LPWSTR)lParam;
mwi->lasterror = mciSendStringW(cmdW, mwi->return_string,
sizeof(mwi->return_string)/sizeof(mwi->return_string[0]),
0);
ARRAY_SIZE(mwi->return_string), 0);
if (mwi->lasterror)
MCIWND_notify_error(mwi);
......
......@@ -319,8 +319,7 @@ static BOOL ICInfo_enum_handler(const char *name, const char *driver, unsigned i
lpicinfo->dwVersionICM = ICVERSION;
lpicinfo->szName[0] = 0;
lpicinfo->szDescription[0] = 0;
MultiByteToWideChar(CP_ACP, 0, driver, -1, lpicinfo->szDriver,
sizeof(lpicinfo->szDriver)/sizeof(WCHAR));
MultiByteToWideChar(CP_ACP, 0, driver, -1, lpicinfo->szDriver, ARRAY_SIZE(lpicinfo->szDriver));
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment