Module: wine Branch: master Commit: d26e0b880cabfad0aa9f6b3e55a587763f3d165e URL: https://gitlab.winehq.org/wine/wine/-/commit/d26e0b880cabfad0aa9f6b3e55a5877...
Author: Sven Baars sbaars@codeweavers.com Date: Sun May 7 11:39:30 2023 +0200
ddraw: Set the texture height in SetSurfaceDesc() (Coverity).
---
dlls/ddraw/surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c index 52ca900441c..d28ed240a05 100644 --- a/dlls/ddraw/surface.c +++ b/dlls/ddraw/surface.c @@ -4845,7 +4845,7 @@ static HRESULT WINAPI ddraw_surface7_SetSurfaceDesc(IDirectDrawSurface7 *iface, wined3d_resource_get_desc(wined3d_texture_get_resource(old_texture), &wined3d_desc);
wined3d_desc.width = width; - wined3d_desc.width = height; + wined3d_desc.height = height; wined3d_desc.format = format_id;
if (FAILED(hr = wined3d_texture_create(ddraw->wined3d_device, &wined3d_desc, 1, 1, @@ -4870,7 +4870,7 @@ static HRESULT WINAPI ddraw_surface7_SetSurfaceDesc(IDirectDrawSurface7 *iface, wined3d_resource_get_desc(wined3d_texture_get_resource(old_draw_texture), &wined3d_desc);
wined3d_desc.width = width; - wined3d_desc.width = height; + wined3d_desc.height = height; wined3d_desc.format = format_id;
if (FAILED(hr = wined3d_texture_create(ddraw->wined3d_device, &wined3d_desc, 1, 1,