Commit 8521cb86 authored by Jeff Latimer's avatar Jeff Latimer Committed by Alexandre Julliard

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

parent f16e2c3a
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment