https://bugs.winehq.org/show_bug.cgi?id=39796
--- Comment #32 from alexchandel@gmail.com --- Actually, wine commit 80055e1fcd0140d610d54bf7d48f3843245c7059 fails to compile with your patch:
``` surface.c:1801:16: warning: implicit declaration of function 'wined3d_device_get_depth_stencil_view' is invalid in C99 [-Wimplicit-function-declaration] && wined3d_device_get_depth_stencil_view(surface->ddraw->wined3d_device) == su... ^ surface.c:1801:98: error: no member named 'wined3d_rtv' in 'struct ddraw_surface' ...&& wined3d_device_get_depth_stencil_view(surface->ddraw->wined3d_device) == surface->wined...
~~~~~~~ ^ surface.c:1802:9: warning: implicit declaration of function 'wined3d_device_set_depth_stencil_view' is invalid in C99 [-Wimplicit-function-declaration] wined3d_device_set_depth_stencil_view(surface->ddraw->wined3d_device, NULL); ^ 2 warnings and 1 error generated. make[1]: *** [surface.o] Error 1 make: *** [dlls/ddraw] Error 2 ```