equal
deleted
inserted
replaced
1612 + if (!cmdstr || !appstr || !uristr) |
1612 + if (!cmdstr || !appstr || !uristr) |
1613 + return NS_ERROR_FAILURE; |
1613 + return NS_ERROR_FAILURE; |
1614 + |
1614 + |
1615 + cmdstr->SetData( NS_LITERAL_CSTRING( "RUN" )); |
1615 + cmdstr->SetData( NS_LITERAL_CSTRING( "RUN" )); |
1616 + command->AppendElement( cmdstr, false ); |
1616 + command->AppendElement( cmdstr, false ); |
1617 + nsCAutoString app; |
1617 + nsAutoCString app; |
1618 + nsresult rv = aApplication->GetNativePath( app ); |
1618 + nsresult rv = aApplication->GetNativePath( app ); |
1619 + NS_ENSURE_SUCCESS( rv, rv ); |
1619 + NS_ENSURE_SUCCESS( rv, rv ); |
1620 + appstr->SetData( app ); |
1620 + appstr->SetData( app ); |
1621 + command->AppendElement( appstr, false ); |
1621 + command->AppendElement( appstr, false ); |
1622 + uristr->SetData( aURI ); |
1622 + uristr->SetData( aURI ); |
1651 + |
1651 + |
1652 + nsCOMPtr<nsISupportsCString> resstr = do_QueryElementAt( output, 0 ); |
1652 + nsCOMPtr<nsISupportsCString> resstr = do_QueryElementAt( output, 0 ); |
1653 + if( !resstr ) |
1653 + if( !resstr ) |
1654 + return NS_ERROR_FAILURE; |
1654 + return NS_ERROR_FAILURE; |
1655 + |
1655 + |
1656 + nsCAutoString path; |
1656 + nsAutoCString path; |
1657 + resstr->GetData( path ); |
1657 + resstr->GetData( path ); |
1658 + if (path.IsEmpty()) |
1658 + if (path.IsEmpty()) |
1659 + return NS_ERROR_FAILURE; |
1659 + return NS_ERROR_FAILURE; |
1660 + |
1660 + |
1661 + nsresult rv; |
1661 + nsresult rv; |