Commit 35d5e766 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Change an ERR to a WARN in IWineD3DVolumeImpl_UnlockBox().

Trying to unlock a volume that isn't locked is questionable behaviour on the side of the application, but not an internal error.
parent d5a8637e
......@@ -281,9 +281,10 @@ static HRESULT WINAPI IWineD3DVolumeImpl_LockBox(IWineD3DVolume *iface, WINED3DL
static HRESULT WINAPI IWineD3DVolumeImpl_UnlockBox(IWineD3DVolume *iface) {
IWineD3DVolumeImpl *This = (IWineD3DVolumeImpl *)iface;
if (!This->locked) {
ERR("trying to lock unlocked volume@%p\n", This);
return WINED3DERR_INVALIDCALL;
if (!This->locked)
{
WARN("Trying to unlock unlocked volume %p.\n", iface);
return WINED3DERR_INVALIDCALL;
}
TRACE("(%p) : unlocking volume\n", This);
This->locked = FALSE;
......
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