msi: Use the langbuff len rather than the versionbuff len when allocating the langbuff.
This commit is contained in:
parent
f16e2c3a27
commit
8521cb8677
|
@ -1206,7 +1206,7 @@ UINT WINAPI MsiGetFileVersionA(LPCSTR szFilePath, LPSTR lpVersionBuf,
|
||||||
|
|
||||||
if( lpLangBuf && pcchLangBuf && *pcchLangBuf )
|
if( lpLangBuf && pcchLangBuf && *pcchLangBuf )
|
||||||
{
|
{
|
||||||
lpwLangBuff = msi_alloc(*pcchVersionBuf*sizeof(WCHAR));
|
lpwLangBuff = msi_alloc(*pcchLangBuf*sizeof(WCHAR));
|
||||||
if( !lpwLangBuff )
|
if( !lpwLangBuff )
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue