/***************************************************************************** * IDirect3DVertexBuffer7::Unlock * * Unlocks a vertex Buffer * * Returns: * D3D_OK on success * *****************************************************************************/ static HRESULT WINAPI IDirect3DVertexBufferImpl_Unlock(IDirect3DVertexBuffer7 *iface) { ICOM_THIS_FROM(IDirect3DVertexBufferImpl, IDirect3DVertexBuffer7, iface); HRESULT hr; TRACE("(%p)->()\n", This); EnterCriticalSection(&ddraw_cs); hr = IWineD3DVertexBuffer_Unlock(This->wineD3DVertexBuffer); LeaveCriticalSection(&ddraw_cs); return hr; }
static HRESULT WINAPI IDirect3DVertexBuffer9Impl_Unlock(LPDIRECT3DVERTEXBUFFER9 iface) { IDirect3DVertexBuffer9Impl *This = (IDirect3DVertexBuffer9Impl *)iface; TRACE("(%p) Relay\n", This); return IWineD3DVertexBuffer_Unlock(This->wineD3DVertexBuffer); }