msi: Native DllGetVersion does not fail if the supplied buffer is bigger than required.
This commit is contained in:
parent
93bbd00be7
commit
055b23b125
|
@ -160,13 +160,13 @@ HRESULT WINAPI DllGetVersion(DLLVERSIONINFO *pdvi)
|
||||||
{
|
{
|
||||||
TRACE("%p\n",pdvi);
|
TRACE("%p\n",pdvi);
|
||||||
|
|
||||||
if (pdvi->cbSize != sizeof(DLLVERSIONINFO))
|
if (pdvi->cbSize < sizeof(DLLVERSIONINFO))
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
|
|
||||||
pdvi->dwMajorVersion = MSI_MAJORVERSION;
|
pdvi->dwMajorVersion = MSI_MAJORVERSION;
|
||||||
pdvi->dwMinorVersion = MSI_MINORVERSION;
|
pdvi->dwMinorVersion = MSI_MINORVERSION;
|
||||||
pdvi->dwBuildNumber = MSI_BUILDNUMBER;
|
pdvi->dwBuildNumber = MSI_BUILDNUMBER;
|
||||||
pdvi->dwPlatformID = 1;
|
pdvi->dwPlatformID = DLLVER_PLATFORM_WINDOWS;
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue