`d3dx_load_image_from_memory` is no more since this patch. I'd generally avoid referring to internal function names in error messages, they aren't particularly interesting or explanatory.
In this particular case, maybe we can do without the message entirely, assuming the called function already prints something in all the interesting failure cases.