ddraw: Remove WINAPI on static functions where not needed.

Francois Gouget fgouget at codeweavers.com
Sun Nov 23 17:29:18 CST 2008


---

If you know other places where the functions touched by this patch 
are used, please let me know. For more details, see:   

http://www.winehq.org/pipermail/wine-patches/2008-November/064995.html


 dlls/ddraw/ddraw.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index ddb7d3a..4f23722 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -46,9 +46,9 @@
 WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
 
 static BOOL IDirectDrawImpl_DDSD_Match(const DDSURFACEDESC2* requested, const DDSURFACEDESC2* provided);
-static HRESULT WINAPI IDirectDrawImpl_AttachD3DDevice(IDirectDrawImpl *This, IDirectDrawSurfaceImpl *primary);
-static HRESULT WINAPI IDirectDrawImpl_CreateNewSurface(IDirectDrawImpl *This, DDSURFACEDESC2 *pDDSD, IDirectDrawSurfaceImpl **ppSurf, UINT level);
-static HRESULT WINAPI IDirectDrawImpl_CreateGDISwapChain(IDirectDrawImpl *This, IDirectDrawSurfaceImpl *primary);
+static HRESULT IDirectDrawImpl_AttachD3DDevice(IDirectDrawImpl *This, IDirectDrawSurfaceImpl *primary);
+static HRESULT IDirectDrawImpl_CreateNewSurface(IDirectDrawImpl *This, DDSURFACEDESC2 *pDDSD, IDirectDrawSurfaceImpl **ppSurf, UINT level);
+static HRESULT IDirectDrawImpl_CreateGDISwapChain(IDirectDrawImpl *This, IDirectDrawSurfaceImpl *primary);
 
 /* Device identifier. Don't relay it to WineD3D */
 static const DDDEVICEIDENTIFIER2 deviceidentifier =
@@ -1936,7 +1936,7 @@ ULONG WINAPI D3D7CB_DestroyDepthStencilSurface(IWineD3DSurface *pSurface) {
  *  DD_OK on success
  *
  *****************************************************************************/
-static HRESULT WINAPI
+static HRESULT
 IDirectDrawImpl_CreateNewSurface(IDirectDrawImpl *This,
                                  DDSURFACEDESC2 *pDDSD,
                                  IDirectDrawSurfaceImpl **ppSurf,
@@ -3212,7 +3212,7 @@ D3D7CB_CreateAdditionalSwapChain(IUnknown *device,
     return res;
 }
 
-static HRESULT WINAPI IDirectDrawImpl_CreateGDISwapChain(IDirectDrawImpl *This,
+static HRESULT IDirectDrawImpl_CreateGDISwapChain(IDirectDrawImpl *This,
                                                          IDirectDrawSurfaceImpl *primary) {
     HRESULT hr;
     WINED3DPRESENT_PARAMETERS presentation_parameters;
@@ -3267,7 +3267,7 @@ static HRESULT WINAPI IDirectDrawImpl_CreateGDISwapChain(IDirectDrawImpl *This,
  *  DDERR_* otherwise
  *
  *****************************************************************************/
-static HRESULT WINAPI
+static HRESULT
 IDirectDrawImpl_AttachD3DDevice(IDirectDrawImpl *This,
                                 IDirectDrawSurfaceImpl *primary)
 {
-- 
1.5.6.5




More information about the wine-patches mailing list