If it's a genuine Glock mag it's for a G18. Externally it's the same as a G22
mag, but internally it's a bit narrower, and the feed lips are closer together.
I'm GUESSING that you might get around 24 rds of 40 in it, and it MIGHT
function OK. It's a bit iffy---the followers are different in the 9 and 40