Module: wine Branch: master Commit: 44b9712cd67b4ae8506d1817b7777460bf1a293e URL: http://source.winehq.org/git/wine.git/?a=commit;h=44b9712cd67b4ae8506d1817b7...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Nov 15 13:43:34 2010 +0100
wined3d: Add a trace to IWineD3DSurfaceImpl_SetMem().
---
dlls/wined3d/surface.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index bef7688..485f255 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -2583,6 +2583,8 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_SetFormat(IWineD3DSurface *iface, enum static HRESULT WINAPI IWineD3DSurfaceImpl_SetMem(IWineD3DSurface *iface, void *Mem) { IWineD3DSurfaceImpl *This = (IWineD3DSurfaceImpl *) iface;
+ TRACE("iface %p, mem %p.\n", iface, Mem); + if (This->flags & (SFLAG_LOCKED | SFLAG_DCINUSE)) { WARN("Surface is locked or the HDC is in use\n");