mciwave: Fix the character count passed to GetTempPathW in create_tmp_file.

This commit is contained in:
Rob Shearman 2008-02-18 19:39:32 +00:00 committed by Alexandre Julliard
parent 608ac1e828
commit 3f4eb28bf5
1 changed files with 1 additions and 1 deletions

View File

@ -369,7 +369,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), szTmpPath)) { if (!GetTempPathW(sizeof(szTmpPath)/sizeof(szTmpPath[0]), szTmpPath)) {
WARN("can't retrieve temp path!\n"); WARN("can't retrieve temp path!\n");
return MCIERR_FILE_NOT_FOUND; return MCIERR_FILE_NOT_FOUND;
} }