Commit 3e8a6836 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent 0d001e3e
......@@ -1012,7 +1012,7 @@ static HRESULT surface_lock(struct ddraw_surface *surface,
if (surface->surface_desc.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)
{
if (flags & DDLOCK_READONLY)
memset(&surface->ddraw->primary_lock, 0, sizeof(surface->ddraw->primary_lock));
SetRectEmpty(&surface->ddraw->primary_lock);
else if (rect)
surface->ddraw->primary_lock = *rect;
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment