ddraw/tests: Use FAILED instead of !SUCCEEDED.
This commit is contained in:
parent
56c6f7670b
commit
ff5a860c0c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue