From 8f14d4639dc86d58a1d4be5f1a92a4ced165028c Mon Sep 17 00:00:00 2001 From: A C Hurst Date: Sat, 17 Mar 2007 22:22:38 +0000 Subject: [PATCH] wined3d: Fix struct size calculation in EnumTextureFormats. --- dlls/ddraw/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index 0814921b52a..231e2cdf43c 100644 --- a/dlls/ddraw/device.c +++ b/dlls/ddraw/device.c @@ -1207,7 +1207,7 @@ IDirect3DDeviceImpl_2_EnumTextureFormats(IDirect3DDevice2 *iface, sdesc.dwSize = sizeof(sdesc); sdesc.dwFlags = DDSD_PIXELFORMAT | DDSD_CAPS; sdesc.ddsCaps.dwCaps = DDSCAPS_TEXTURE; - sdesc.ddpfPixelFormat.dwSize = sizeof(sdesc.ddpfPixelFormat.dwSize); + sdesc.ddpfPixelFormat.dwSize = sizeof(sdesc.ddpfPixelFormat); PixelFormat_WineD3DtoDD(&sdesc.ddpfPixelFormat, FormatList[i]); TRACE("Enumerating WineD3DFormat %d\n", FormatList[i]);