ddraw: Use SetRectEmpty() instead of memset().

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-07-30 22:07:45 +02:00 committed by Alexandre Julliard
parent 0d001e3e1c
commit 3e8a683658
1 changed files with 1 additions and 1 deletions

View File

@ -1012,7 +1012,7 @@ static HRESULT surface_lock(struct ddraw_surface *surface,
if (surface->surface_desc.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE) if (surface->surface_desc.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)
{ {
if (flags & DDLOCK_READONLY) if (flags & DDLOCK_READONLY)
memset(&surface->ddraw->primary_lock, 0, sizeof(surface->ddraw->primary_lock)); SetRectEmpty(&surface->ddraw->primary_lock);
else if (rect) else if (rect)
surface->ddraw->primary_lock = *rect; surface->ddraw->primary_lock = *rect;
else else