msi: Validate the szProduct parameter of MsiConfigureProductEx.

This commit is contained in:
James Hawkins 2008-07-28 18:47:30 -05:00 committed by Alexandre Julliard
parent 38106ac230
commit ac976c94c8
1 changed files with 3 additions and 0 deletions

View File

@ -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)
{