mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 23:20:43 +00:00
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:
parent
17294a6b05
commit
84cec28928
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue