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