Index: /trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/device.c
===================================================================
--- /trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/device.c	(revision 30916)
+++ /trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/device.c	(revision 30917)
@@ -713,5 +713,4 @@
 }
 
-#ifdef VBOXWDDM
 VBOXWINEEX_DECL(HRESULT) VBoxWineExD3DDev9CreateTexture(IDirect3DDevice9Ex *iface,
         UINT width, UINT height, UINT levels, DWORD usage, D3DFORMAT format,
@@ -720,4 +719,5 @@
                             *    applicable ONLY for SYSMEM textures */
 {
+#ifdef VBOXWDDM
     IDirect3DDevice9Impl *This = (IDirect3DDevice9Impl *)iface;
     IDirect3DTexture9Impl *object;
@@ -735,8 +735,6 @@
 
     hr = texture_init(object, This, width, height, levels, usage, format, pool
-#ifdef VBOXWDDM
         , shared_handle
         , pvClientMem
-#endif
             );
     if (FAILED(hr))
@@ -751,6 +749,8 @@
 
     return D3D_OK;
-}
+#else
+    return E_NOTIMPL;
 #endif
+}
 
 static HRESULT WINAPI IDirect3DDevice9Impl_CreateTexture(IDirect3DDevice9Ex *iface,
