Rob Shearman : mciwave: Fix the character count passed to GetTempPathW in create_tmp_file.
Module: wine Branch: master Commit: 3f4eb28bf5f69d3c0641f41aefa6239d3107ff88 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3f4eb28bf5f69d3c0641f41aef... Author: Rob Shearman <rob(a)codeweavers.com> Date: Mon Feb 18 19:39:32 2008 +0000 mciwave: Fix the character count passed to GetTempPathW in create_tmp_file. --- dlls/mciwave/mciwave.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 @@ 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; }
participants (1)
-
Alexandre Julliard