There are three rounds to consider here.
9x19 or 9mm Luger - bullet .355, Pressure ~35,000
9x18 or 9mm Makarov - bullet .364, Pressure ~24,000
9x17 or .380 or 9mm Short... - buller .355 ~21,000
The Markarov is 1mm short than the 9mm Luger but other dimensions are similar EXCEPT it uses bullet that are .364 in diameter. It is a lower pressure round. With a good extractor you can fire the 9x18 in a 9mm Luger gun. No particular problem. Wouldn't depend on it working every time though. I've on rare occasion found a case in my range sweepings and load it with .355 bullets and it has worked fine. A testimony to Glock's ability to digest most any ammo.
The .380, contrary to what some people think isn't just a shorter 9mm. It is smaller dimensionaly in all respects to the 9mm Luger including the case wall thickness. That allows it to use the same size bullet. I've tried to chamber a .380 in a 9mm but it is too small for the extractor to hold in place. Not that it couldn't happen. The risk would be if you did manage to fire it. is that the case would not seal the chamber and you'd get blow back.