

Yes, you’re right, I think I’ve mixed that up with the mention that Sirius had a gun when he ”killed” Pettigrew. There doesn’t seem to be any mention that guns wouldn’t work on wizards, other than maybe Hagrid’s lack of fear of Vernon Dursley’s gun when he got to Harry.
To be fair, I think that’s to check if their reflexes include unknowingly using magic to protect themselves. That should only work if they’ve perceived the danger, like putting out your hands to stop a fall.
Shooting someone would (if they’re being properly ambushed) usually result in them being shot before they realise it, so it wouldn’t matter if they’re magic.
But if they do realise they’re being shot at, then why defence magic at all? Just use your innate magical reflexes to avoid death!? Why the need to learn how to block spells?
So either guns would work, or they wouldn’t and it’s not explained at all.
Also Hermione slaps Malloy at one point. If his innate defensive magic reflexes didn’t kick in then, no reason to think they would if he was hit with both barrels from a shotgun to the chest.