Commit ac976c94 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Validate the szProduct parameter of MsiConfigureProductEx.

parent 38106ac2
......@@ -357,6 +357,9 @@ UINT WINAPI MsiConfigureProductExW(LPCWSTR szProduct, int iInstallLevel,
TRACE("%s %d %d %s\n",debugstr_w(szProduct), iInstallLevel, eInstallState,
debugstr_w(szCommandLine));
if (!szProduct || lstrlenW(szProduct) != GUID_SIZE - 1)
return ERROR_INVALID_PARAMETER;
if (eInstallState != INSTALLSTATE_LOCAL &&
eInstallState != INSTALLSTATE_DEFAULT)
{
......
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