msi: Native DllGetVersion does not fail if the supplied buffer is bigger than required.

This commit is contained in:
Stefan Leichter 2006-07-28 00:26:42 +02:00 committed by Alexandre Julliard
parent 93bbd00be7
commit 055b23b125
1 changed files with 2 additions and 2 deletions

View File

@ -160,13 +160,13 @@ HRESULT WINAPI DllGetVersion(DLLVERSIONINFO *pdvi)
{
TRACE("%p\n",pdvi);
if (pdvi->cbSize != sizeof(DLLVERSIONINFO))
if (pdvi->cbSize < sizeof(DLLVERSIONINFO))
return E_INVALIDARG;
pdvi->dwMajorVersion = MSI_MAJORVERSION;
pdvi->dwMinorVersion = MSI_MINORVERSION;
pdvi->dwBuildNumber = MSI_BUILDNUMBER;
pdvi->dwPlatformID = 1;
pdvi->dwPlatformID = DLLVER_PLATFORM_WINDOWS;
return S_OK;
}