commit | 3f4eb28bf5f69d3c0641f41aefa6239d3107ff88 | [log] [tgz] |
---|---|---|
author | Rob Shearman <rob@codeweavers.com> | Mon Feb 18 19:39:32 2008 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Tue Feb 19 13:39:24 2008 +0100 |
tree | bdca0d56cd59f04fd24206819388db01fde15c25 | |
parent | 608ac1e828f65130a7ac36794f7f7948206a1708 [diff] |
mciwave: Fix the character count passed to GetTempPathW in create_tmp_file.
diff --git a/dlls/mciwave/mciwave.c b/dlls/mciwave/mciwave.c index 520d285..0b12ad2 100644 --- a/dlls/mciwave/mciwave.c +++ b/dlls/mciwave/mciwave.c
@@ -369,7 +369,7 @@ 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; }