The primary product of this reaction is mono-chloroacetate of o-phenylenediamine (plus N,N'-bis-chloroacetate, ratio depending on stoichiometry). After that, the mono-chloroacetate may cyclise to either 1,2,3,4-tetrahydroquinoxaline-2-one (6-member ring formation) or 2-chloromethyl-1H-benzimidazole (5-member ring formation).
I don't see how quinazoline structure can be produced in this reaction.