SAS similarity theorem: When two triangles have corresponding angles that are congruent and corresponding sides with identical ratios, the triangles are similar.
Two right angles are always congruent, but corresponding sides not always have identical ratios. For example, first right triangle has two legs of 3 and 4 lengths. Second triangle has two legs of 5 and 12 lengths. Then

. That is the mistake.