[PATCH 2/2] include: cpp_quote D3D10CreateDeviceAndSwapChain1.

Stefan Dösinger stefandoesinger at gmx.at
Sun Aug 7 14:22:51 CDT 2016

D3D10_DRIVER_TYPE is defined in d3d10misc.h, so MIDL complains that it
doesn't know about it. Microsoft's headers work in the same way, as does
the existing D3D10CreateDevice1 definition right above this one.

Signed-off-by: Stefan Dösinger <stefandoesinger at gmx.at>
 include/d3d10_1.idl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/d3d10_1.idl b/include/d3d10_1.idl
index a37ff9e..061628a 100644
--- a/include/d3d10_1.idl
+++ b/include/d3d10_1.idl
@@ -152,6 +152,6 @@ const UINT D3D10_1_SDK_VERSION = 0x20;
 cpp_quote("HRESULT WINAPI D3D10CreateDevice1(IDXGIAdapter*,D3D10_DRIVER_TYPE,")
 cpp_quote("    HMODULE,UINT,D3D10_FEATURE_LEVEL1,UINT,ID3D10Device1**);")
-[local] HRESULT __stdcall D3D10CreateDeviceAndSwapChain1(IDXGIAdapter *adapter, enum D3D10_DRIVER_TYPE driver_type,
-        HMODULE swrast, UINT flags, D3D10_FEATURE_LEVEL1 feature_level, UINT sdk_version,
-        DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D10Device1 **device);
+cpp_quote("HRESULT WINAPI D3D10CreateDeviceAndSwapChain1(IDXGIAdapter *adapter, D3D10_DRIVER_TYPE driver_type,")
+cpp_quote("    HMODULE swrast, UINT flags, D3D10_FEATURE_LEVEL1 feature_level, UINT sdk_version,")
+cpp_quote("    DXGI_SWAP_CHAIN_DESC *swapchain_desc, IDXGISwapChain **swapchain, ID3D10Device1 **device);")

More information about the wine-patches mailing list