This came after King Michael's Coup following which Romania changed sides and joined the Allies.
The 1947 Treaty of Paris reaffirmed the borders between Romania and Hungary, as originally defined in Treaty of Trianon, 27 years earlier.