MSI advertised shortcuts don't require a product ID.

This commit is contained in:
Mike McCormack 2005-04-22 19:06:12 +00:00 committed by Alexandre Julliard
parent 950d678c5e
commit 5960e7c93c
1 changed files with 5 additions and 2 deletions

View File

@ -1996,6 +1996,9 @@ static LPWSTR ShellLink_GetAdvertisedArg(LPCWSTR str)
LPCWSTR p;
DWORD len;
if( !str )
return NULL;
p = strchrW( str, ':' );
if( !p )
return NULL;
@ -2057,8 +2060,8 @@ static HRESULT ShellLink_SetAdvertiseInfo(IShellLinkImpl *This, LPCWSTR str)
return E_FAIL;
}
/* we have to have at least one of these two for an advertised shortcut */
if( !szComponent && !szProduct )
/* we have to have a component for an advertised shortcut */
if( !szComponent )
return E_FAIL;
This->sComponent = ShellLink_GetAdvertisedArg( szComponent );