Commit 3f4eb28b authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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

parent 608ac1e8
......@@ -369,7 +369,7 @@ static DWORD create_tmp_file(HMMIO* hFile, LPWSTR* pszTmpFileName)
szPrefix[2] = 'I';
szPrefix[3] = '\0';
if (!GetTempPathW(sizeof(szTmpPath), szTmpPath)) {
if (!GetTempPathW(sizeof(szTmpPath)/sizeof(szTmpPath[0]), szTmpPath)) {
WARN("can't retrieve temp path!\n");
return MCIERR_FILE_NOT_FOUND;
}
......
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