[PATCH 4/5] ddraw: Failing surface creation is not an internal error.
Henri Verbeet
hverbeet at codeweavers.com
Sun Aug 22 16:35:40 CDT 2010
---
dlls/ddraw/ddraw.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index d80dc1e..572c790 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -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;
}
--
1.7.1
More information about the wine-patches
mailing list