Could Napoleon had added all West Galicia to the Hungarian border to Duchy of Warsaw? And as a gesture of friendship to Russia give it East Galicia with Lvov? Even if Russia still takes Poland, at least you would have a united Poland in the Russian Empire, rather than a partitioned one. This would mean Russia gets all the Duchy of Warsaw.