Unless Charles VI gets a son, the War of Austrian Succession still likely happens.
But will the Prussians still manage to win Silesia? I am not sure how much a Habsburg Bavaria would change the power balance, but in OTL War of Austrian Succession, Bavaria was allied with Prussia, but it this scenario, Bavaria would be Habsburg territory. Would any of the other powers change side in order not to make the Habsburgs to powerful?