mirror of
https://github.com/reactos/wine.git
synced 2025-02-06 12:08:04 +00:00
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);
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user