mciwave: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fe70e0e58f
commit
762d14e897
|
@ -427,7 +427,7 @@ static DWORD create_tmp_file(HMMIO* hFile, LPWSTR* pszTmpFileName)
|
||||||
szPrefix[2] = 'I';
|
szPrefix[2] = 'I';
|
||||||
szPrefix[3] = '\0';
|
szPrefix[3] = '\0';
|
||||||
|
|
||||||
if (!GetTempPathW(sizeof(szTmpPath)/sizeof(szTmpPath[0]), szTmpPath)) {
|
if (!GetTempPathW(ARRAY_SIZE(szTmpPath), szTmpPath)) {
|
||||||
WARN("can't retrieve temp path!\n");
|
WARN("can't retrieve temp path!\n");
|
||||||
*pszTmpFileName = NULL;
|
*pszTmpFileName = NULL;
|
||||||
return MCIERR_FILE_NOT_FOUND;
|
return MCIERR_FILE_NOT_FOUND;
|
||||||
|
|
Loading…
Reference in New Issue