Fix context menu handling for more than one entry in order to repair

.lnk-file execution: Don't break at the first non-matching entry.
This commit is contained in:
Martin Fuchs 2005-11-30 18:26:32 +01:00 committed by Alexandre Julliard
parent 902edb117c
commit 041039390a
1 changed files with 8 additions and 8 deletions

View File

@ -1156,15 +1156,15 @@ static LONG ShellExecute_FromContextMenu( LPSHELLEXECUTEINFOW sei )
r = RegEnumKeyW( hkeycm, i++, szguid, 39 );
if ( r != ERROR_SUCCESS )
break;
r = ERROR_FUNCTION_FAILED;
hr = CLSIDFromString( szguid, &guid );
if ( FAILED( hr ) )
break;
r = ERROR_SUCCESS;
/* stop at the first one that succeeds in running */
hr = shellex_load_object_and_run( hkey, &guid, sei );
if ( SUCCEEDED( hr ) )
break;
if (SUCCEEDED(hr))
{
/* stop at the first one that succeeds in running */
hr = shellex_load_object_and_run( hkey, &guid, sei );
if ( SUCCEEDED( hr ) )
break;
}
}
RegCloseKey( hkeycm );
}