Port b75f3b5a79 from emulators/wine:
This back ports the patch I pushed upstream and that wine-devel has
inherited from there a few months ago. It will go away with the next
major release.
PR: 260792
Requested by: iwtcex@gmail.com (maintainer)
Submitted by: Patrick Mackinlay <freebsd.68fba@nospam.spacesurfer.com>