She reached out, still frowning, but gave his shoulder a solid pat, like one might give a pathetic, but somehow endearing, dog.
Other options:
no subject
She reached out, still frowning, but gave his shoulder a solid pat, like one might give a pathetic, but somehow endearing, dog.