Fix function wrapping.
Merge pull request #2359 from mdboom/misc/deprecated-bug

Fix deprecated function wrapping