Commit ff5a860c authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

ddraw/tests: Use FAILED instead of !SUCCEEDED.

parent 56c6f767
......@@ -102,7 +102,7 @@ static BOOL CreateDirect3D(void)
ddsd.dwWidth = 256;
ddsd.dwHeight = 256;
rc = IDirectDraw7_CreateSurface(lpDD, &ddsd, &lpDDS, NULL);
if (!SUCCEEDED(rc))
if (FAILED(rc))
return FALSE;
memset(&ddsd, 0, sizeof(ddsd));
......@@ -117,12 +117,12 @@ static BOOL CreateDirect3D(void)
ddsd.dwHeight = 256;
rc = IDirectDraw7_CreateSurface(lpDD, &ddsd, &lpDDSdepth, NULL);
ok(rc==DD_OK, "CreateSurface returned: %x\n", rc);
if (!SUCCEEDED(rc)) {
if (FAILED(rc)) {
lpDDSdepth = NULL;
} else {
rc = IDirectDrawSurface_AddAttachedSurface(lpDDS, lpDDSdepth);
ok(rc == DD_OK, "IDirectDrawSurface_AddAttachedSurface returned %x\n", rc);
if (!SUCCEEDED(rc))
if (FAILED(rc))
return FALSE;
}
......
......@@ -76,7 +76,7 @@ static BOOL CreateDirectDraw(void)
ddsd.dwFlags = DDSD_CAPS;
ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE;
hr = IDirectDraw7_CreateSurface(ddraw, &ddsd, &primary, NULL);
if (!SUCCEEDED(hr)) {
if (FAILED(hr)) {
IDirectDraw7_Release(ddraw);
trace("IDirectDraw7_CreateSurface() failed with an error %x\n", hr);
return 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