ddraw: Warning message about an invalid structure size will now print the structure's size.

John Edmonds pocketcookies2 at gmail.com
Sun Jun 26 12:52:27 CDT 2011


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

diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c
index 1b70d7e..102aa55 100644
--- a/dlls/ddraw/surface.c
+++ b/dlls/ddraw/surface.c
@@ -863,7 +863,7 @@ static HRESULT WINAPI ddraw_surface7_Lock(IDirectDrawSurface7 *iface,
     if(DDSD->dwSize != sizeof(DDSURFACEDESC) &&
        DDSD->dwSize != sizeof(DDSURFACEDESC2))
     {
-        WARN("Invalid structure size %d, returning DDERR_INVALIDPARAMS\n", DDERR_INVALIDPARAMS);
+        WARN("Invalid structure size %d, returning DDERR_INVALIDPARAMS\n", DDSD->dwSize);
         LeaveCriticalSection(&ddraw_cs);
         return DDERR_INVALIDPARAMS;
     }
-- 
1.7.4.1





More information about the wine-patches mailing list