Commit f5e1e3be authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

Have the 'Lock' warning a bit clearer.

parent f876bf6f
...@@ -990,10 +990,10 @@ Main_DirectDrawSurface_Lock(LPDIRECTDRAWSURFACE7 iface, LPRECT prect, ...@@ -990,10 +990,10 @@ Main_DirectDrawSurface_Lock(LPDIRECTDRAWSURFACE7 iface, LPRECT prect,
TRACE("(%p)->Lock(%p,%p,%08lx,%08lx)\n",This,prect,pDDSD,flags,(DWORD)h); TRACE("(%p)->Lock(%p,%p,%08lx,%08lx)\n",This,prect,pDDSD,flags,(DWORD)h);
TRACE(" - locking flags : "); DDRAW_dump_lockflag(flags); TRACE(" - locking flags : "); DDRAW_dump_lockflag(flags);
} }
if (WARN_ON(ddraw)) {
if (flags & ~(DDLOCK_WAIT|DDLOCK_READONLY|DDLOCK_WRITEONLY)) if (flags & ~(DDLOCK_WAIT|DDLOCK_READONLY|DDLOCK_WRITEONLY))
WARN("(%p)->Lock(%p,%p,%08lx,%08lx)\n", WARN(" - unsupported locking flag : "); DDRAW_dump_lockflag(flags & ~(DDLOCK_WAIT|DDLOCK_READONLY|DDLOCK_WRITEONLY));
This,prect,pDDSD,flags,(DWORD)h); }
/* First, copy the Surface description */ /* First, copy the Surface description */
DD_STRUCT_COPY_BYSIZE(pDDSD,&(This->surface_desc)); DD_STRUCT_COPY_BYSIZE(pDDSD,&(This->surface_desc));
......
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