wined3d: Fix struct size calculation in EnumTextureFormats.

This commit is contained in:
A C Hurst 2007-03-17 22:22:38 +00:00 committed by Alexandre Julliard
parent 90fe64cee0
commit 8f14d4639d
1 changed files with 1 additions and 1 deletions

View File

@ -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]);