[PATCH 03/10] ddraw/tests: Add test for NULL/bad size of surface caps in CreateSurface. (try 3)
Alexandre Julliard
julliard at winehq.org
Wed Aug 4 05:29:14 CDT 2010
Oldřich Jedlička <oldium.pro at seznam.cz> writes:
> + __TRY
> + {
> + hr = IDirectDraw_CreateSurface(lpDD, NULL, &surf, NULL);
> + todo_wine ok(hr == DDERR_INVALIDPARAMS, "IDirectDraw_CreateSurface didn't return 0x%08x, but 0x%08x\n",
> + DDERR_INVALIDPARAMS, hr);
> + }
> + __EXCEPT_PAGE_FAULT
> + {
> + todo_wine ok(FALSE, "IDirectDraw_CreateSurface dereferenced NULL pointer\n");
> + }
> + __ENDTRY
You can't use Wine exception macros in tests.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list