Authorities say the party was at the family's home on Wintergreen and Crestline in northeast Harris County.
Deputies say the man was spinning the gun with his hand when it accidentally went off.
He was rushed to the hospital and his condition is currently unknown.