Jeff Latimer : msi: Use the langbuff len rather than the versionbuff len when allocating the langbuff .
Module: wine Branch: master Commit: 8521cb867744b9c5ef484c808793f95aa8bb2abb URL: http://source.winehq.org/git/wine.git/?a=commit;h=8521cb867744b9c5ef484c8087... Author: Jeff Latimer <lats(a)yless4u.com.au> Date: Sun Jun 10 17:43:30 2007 +1000 msi: Use the langbuff len rather than the versionbuff len when allocating the langbuff. --- dlls/msi/msi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 927c47f..a09984e 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -1206,7 +1206,7 @@ UINT WINAPI MsiGetFileVersionA(LPCSTR szFilePath, LPSTR lpVersionBuf, if( lpLangBuf && pcchLangBuf && *pcchLangBuf ) { - lpwLangBuff = msi_alloc(*pcchVersionBuf*sizeof(WCHAR)); + lpwLangBuff = msi_alloc(*pcchLangBuf*sizeof(WCHAR)); if( !lpwLangBuff ) goto end; }
participants (1)
-
Alexandre Julliard