http://bugs.winehq.org/show_bug.cgi?id=27994
--- Comment #13 from Rico kgbricola@web.de 2011-12-25 17:40:20 CST --- For reference, Travis send some patches a while ago ( see http://www.winehq.org/pipermail/wine-patches/2011-July/104371.html ). Maybe you want to give it a try.
I think it won't fix the issue with ID3DXConstantTableImpl_GetConstantElement(), but it may help a bit. Though there are needed some test cases to verify the correct behavior.