Module: wine Branch: master Commit: 8f14d4639dc86d58a1d4be5f1a92a4ced165028c URL: http://source.winehq.org/git/wine.git/?a=commit;h=8f14d4639dc86d58a1d4be5f1a...
Author: A C Hurst A.Hurst@sheffield.ac.uk Date: Sat Mar 17 22:22:38 2007 +0000
wined3d: Fix 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]);