WineD3D: heap corruption patch