Rob Shearman : mciwave: Fix the character count passed to GetTempPathW in create_tmp_file.
Alexandre Julliard
julliard at winehq.org
Tue Feb 19 08:05:15 CST 2008
Module: wine
Branch: master
Commit: 3f4eb28bf5f69d3c0641f41aefa6239d3107ff88
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3f4eb28bf5f69d3c0641f41aefa6239d3107ff88
Author: Rob Shearman <rob at 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;
}
More information about the wine-cvs
mailing list