ddraw: Do not fail on surface creation errors, skip instead.

This commit is contained in:
Stefan Dösinger 2007-10-09 14:56:46 +02:00 committed by Alexandre Julliard
parent aec86b4ef9
commit 7a445747ea
1 changed files with 1 additions and 2 deletions

View File

@ -93,9 +93,8 @@ static BOOL CreateDirect3D(void)
ddsd.dwWidth = 256;
ddsd.dwHeight = 256;
rc = IDirectDraw7_CreateSurface(lpDD, &ddsd, &lpDDS, NULL);
ok(rc==DD_OK, "CreateSurface returned: %x\n", rc);
if (!SUCCEEDED(rc))
return FALSE;
return FALSE;
memset(&ddsd, 0, sizeof(ddsd));
ddsd.dwSize = sizeof(ddsd);