d3d8: Void functions should not return a value (Try 2)

Andrew Talbot Andrew.Talbot at talbotville.com
Sat Apr 7 15:27:55 CDT 2007


Changelog:
    d3d8: Void functions should not return a value.

diff -urN a/dlls/d3d8/cubetexture.c b/dlls/d3d8/cubetexture.c
--- a/dlls/d3d8/cubetexture.c	2006-12-06 11:51:13.000000000 +0000
+++ b/dlls/d3d8/cubetexture.c	2007-04-07 21:20:23.000000000 +0100
@@ -104,7 +104,7 @@
 static void WINAPI IDirect3DCubeTexture8Impl_PreLoad(LPDIRECT3DCUBETEXTURE8 iface) {
     IDirect3DCubeTexture8Impl *This = (IDirect3DCubeTexture8Impl *)iface;
     TRACE("(%p) Relay\n", This);
-    return IWineD3DCubeTexture_PreLoad(This->wineD3DCubeTexture);
+    IWineD3DCubeTexture_PreLoad(This->wineD3DCubeTexture);
 }
 
 static D3DRESOURCETYPE WINAPI IDirect3DCubeTexture8Impl_GetType(LPDIRECT3DCUBETEXTURE8 iface) {
diff -urN a/dlls/d3d8/device.c b/dlls/d3d8/device.c
--- a/dlls/d3d8/device.c	2007-04-07 19:01:32.000000000 +0100
+++ b/dlls/d3d8/device.c	2007-04-07 21:20:41.000000000 +0100
@@ -208,7 +208,7 @@
 static void WINAPI IDirect3DDevice8Impl_SetCursorPosition(LPDIRECT3DDEVICE8 iface, UINT XScreenSpace, UINT YScreenSpace, DWORD Flags) {
     IDirect3DDevice8Impl *This = (IDirect3DDevice8Impl *)iface;
     TRACE("(%p) Relay\n", This);
-    return IWineD3DDevice_SetCursorPosition(This->WineD3DDevice, XScreenSpace, YScreenSpace, Flags);
+    IWineD3DDevice_SetCursorPosition(This->WineD3DDevice, XScreenSpace, YScreenSpace, Flags);
 }
 
 static BOOL WINAPI IDirect3DDevice8Impl_ShowCursor(LPDIRECT3DDEVICE8 iface, BOOL bShow) {
@@ -359,7 +359,7 @@
     TRACE("(%p) Relay\n", This);
 
     /* Note: D3DGAMMARAMP is compatible with WINED3DGAMMARAMP */
-    return IWineD3DDevice_SetGammaRamp(This->WineD3DDevice, 0, Flags, (CONST WINED3DGAMMARAMP *) pRamp);
+    IWineD3DDevice_SetGammaRamp(This->WineD3DDevice, 0, Flags, (CONST WINED3DGAMMARAMP *) pRamp);
 }
 
 static void WINAPI IDirect3DDevice8Impl_GetGammaRamp(LPDIRECT3DDEVICE8 iface, D3DGAMMARAMP* pRamp) {
@@ -367,7 +367,7 @@
     TRACE("(%p) Relay\n", This);
 
     /* Note: D3DGAMMARAMP is compatible with WINED3DGAMMARAMP */
-    return IWineD3DDevice_GetGammaRamp(This->WineD3DDevice, 0, (WINED3DGAMMARAMP *) pRamp);
+    IWineD3DDevice_GetGammaRamp(This->WineD3DDevice, 0, (WINED3DGAMMARAMP *) pRamp);
 }
 
 static HRESULT WINAPI IDirect3DDevice8Impl_CreateTexture(LPDIRECT3DDEVICE8 iface, UINT Width, UINT Height, UINT Levels, DWORD Usage,
diff -urN a/dlls/d3d8/indexbuffer.c b/dlls/d3d8/indexbuffer.c
--- a/dlls/d3d8/indexbuffer.c	2006-10-10 19:21:42.000000000 +0100
+++ b/dlls/d3d8/indexbuffer.c	2007-04-07 21:20:56.000000000 +0100
@@ -103,7 +103,7 @@
 static void WINAPI IDirect3DIndexBuffer8Impl_PreLoad(LPDIRECT3DINDEXBUFFER8 iface) {
     IDirect3DIndexBuffer8Impl *This = (IDirect3DIndexBuffer8Impl *)iface;
     TRACE("(%p) Relay\n", This);
-    return IWineD3DIndexBuffer_PreLoad(This->wineD3DIndexBuffer);
+    IWineD3DIndexBuffer_PreLoad(This->wineD3DIndexBuffer);
 }
 
 static D3DRESOURCETYPE WINAPI IDirect3DIndexBuffer8Impl_GetType(LPDIRECT3DINDEXBUFFER8 iface) {
diff -urN a/dlls/d3d8/texture.c b/dlls/d3d8/texture.c
--- a/dlls/d3d8/texture.c	2006-12-06 11:51:13.000000000 +0000
+++ b/dlls/d3d8/texture.c	2007-04-07 21:21:07.000000000 +0100
@@ -104,7 +104,7 @@
 static void WINAPI IDirect3DTexture8Impl_PreLoad(LPDIRECT3DTEXTURE8 iface) {
     IDirect3DTexture8Impl *This = (IDirect3DTexture8Impl *)iface;
     TRACE("(%p) Relay\n", This);
-    return IWineD3DTexture_PreLoad(This->wineD3DTexture);
+    IWineD3DTexture_PreLoad(This->wineD3DTexture);
 }
 
 static D3DRESOURCETYPE WINAPI IDirect3DTexture8Impl_GetType(LPDIRECT3DTEXTURE8 iface) {
diff -urN a/dlls/d3d8/volumetexture.c b/dlls/d3d8/volumetexture.c
--- a/dlls/d3d8/volumetexture.c	2006-12-06 11:51:14.000000000 +0000
+++ b/dlls/d3d8/volumetexture.c	2007-04-07 21:21:17.000000000 +0100
@@ -104,7 +104,7 @@
 static void WINAPI IDirect3DVolumeTexture8Impl_PreLoad(LPDIRECT3DVOLUMETEXTURE8 iface) {
     IDirect3DVolumeTexture8Impl *This = (IDirect3DVolumeTexture8Impl *)iface;
     TRACE("(%p) Relay\n", This);
-    return IWineD3DVolumeTexture_PreLoad(This->wineD3DVolumeTexture);
+    IWineD3DVolumeTexture_PreLoad(This->wineD3DVolumeTexture);
 }
 
 static D3DRESOURCETYPE WINAPI IDirect3DVolumeTexture8Impl_GetType(LPDIRECT3DVOLUMETEXTURE8 iface) {



More information about the wine-patches mailing list