 Poland gained the former German provinces of Silesia and Pomerania, with the eastern part of Brandenburg and the southern part of East Prussia.The eastern border of the country was established roughly along the Curzon Line, leaving Białystok in Poland and Lviv in the Soviet Ukraine.The border of Poland and the Soviet Union, delimited on the 1945 agreement remained almost unchanged until the early 1950s (with a minor correction in 1948, when the village of Medyka near Przemyśl was transferred to Poland).