Firstly, don't upload images as attachments.
Ever.
Secondly, you don't show the implementation of XStr, so knowing how it was supposed to work / how to fix it is pretty much out the window.
Next time give a fucking proper test case.
Since it's used with LoadLibraryA, I'm assuming it "stringifies" those 5 hex values. And since there is D3D stuff further into the code, and there are 5 hex values (d-3-d-1-x), it should probably load d3d.
So, easy fix is replacing:
Code:
LoadLibraryA(XStr( /* WHATEVER */).c());
with:
Code:
LoadLibraryA("D3D1X");
But then again, if you didn't fiigure this out by yourself, my help will probably be in vein.