Is this still breaking functionality in d3dx10 that previously worked? My suggestion would be to move the code to DdsDecoder_Wine_Initialize, update d3dx10 to use this interface if available, then update the validation in DdsDecoder_Initialize.