ddraw: Failing surface creation is not an internal error.

This commit is contained in:
Henri Verbeet 2010-08-22 23:35:40 +02:00 committed by Alexandre Julliard
parent 866099765a
commit 9364f80b8c

View file

@ -3144,9 +3144,9 @@ static HRESULT WINAPI ddraw7_CreateSurface(IDirectDraw7 *iface,
/* Create the first surface */
hr = ddraw_create_surface(This, &desc2, &object, 0);
if( hr != DD_OK)
if (FAILED(hr))
{
ERR("ddraw_create_surface failed, hr %#x.\n", hr);
WARN("ddraw_create_surface failed, hr %#x.\n", hr);
LeaveCriticalSection(&ddraw_cs);
return hr;
}