From 8521cb867744b9c5ef484c808793f95aa8bb2abb Mon Sep 17 00:00:00 2001 From: Jeff Latimer Date: Sun, 10 Jun 2007 17:43:30 +1000 Subject: [PATCH] msi: Use the langbuff len rather than the versionbuff len when allocating the langbuff. --- dlls/msi/msi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 927c47f384a..a09984e6e01 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; }