Commit 5960e7c9 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

MSI advertised shortcuts don't require a product ID.

parent 950d678c
......@@ -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 );
......
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