wined3d: Fix struct size calculation in EnumTextureFormats
A C Hurst
A.Hurst at sheffield.ac.uk
Sat Mar 17 17:22:38 CDT 2007
Fixes the calculation of a struct size in IDirect3DDeviceImpl_2_EnumTextureFormats,
and fixes bug 7061.
>From 3f08264567229ff6a23b2cf311a18ee013c86152 Mon Sep 17 00:00:00 2001
From: ahurst <ahurst at hurstmachine.(none)>
Date: Sat, 17 Mar 2007 22:17:18 +0000
Subject: Fis struct size calculation in EnumTextureFormats
---
dlls/ddraw/device.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
index 0814921..231e2cd 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]);
--
1.4.4.4
More information about the wine-patches
mailing list