msi: Use the langbuff len rather than the versionbuff len when allocating the langbuff.

This commit is contained in:
Jeff Latimer 2007-06-10 17:43:30 +10:00 committed by Alexandre Julliard
parent f16e2c3a27
commit 8521cb8677
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}