When did Hitler's dictatorship in Germany end?

After he killed himself during the Allied invasion in 1945.