mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
1600f2e6bd
When ddraw_texture_init needs to clean up on failure, it will call the wined3d_texture_get_sub_resource_parent function on draw_texture in order to retrieve its parent for a IDirectDrawSurface release call. However, if draw_texture is NULL, then the function call will crash due to a null pointer dereference. Therefore, on failure cleanup, the release operation on the texture parent should only be performed if draw_texture is not NULL. This fixes a crash in the Virtual Insanity game demo. |
||
---|---|---|
.. | ||
tests | ||
clipper.c | ||
ddraw.c | ||
ddraw.spec | ||
ddraw_classes.idl | ||
ddraw_private.h | ||
device.c | ||
executebuffer.c | ||
light.c | ||
main.c | ||
Makefile.in | ||
material.c | ||
palette.c | ||
surface.c | ||
utils.c | ||
version.rc | ||
vertexbuffer.c | ||
viewport.c |