wine/dlls/ddraw
Andrew Nguyen 1600f2e6bd ddraw: Release only valid texture parents on ddraw_texture_init failure.
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.
2024-03-15 15:06:37 +01:00
..
tests ddraw: Sync to sysmem after performing a color fill. 2024-01-17 10:57:32 +01:00
clipper.c ddraw: Use SecureZeroMemory to clear the clipper vtbl. 2023-11-07 22:58:40 +01:00
ddraw.c ddraw: Reserve extra space in the reference device description buffer. 2024-03-12 22:36:12 +01:00
ddraw.spec
ddraw_classes.idl
ddraw_private.h ddraw: Use the sysmem wined3d texture for sysmem surfaces if possible. 2024-01-17 10:57:32 +01:00
device.c ddraw: Use designated initializers in tss_lookup. 2023-11-07 11:04:20 +01:00
executebuffer.c ddraw: Use CRT allocation functions. 2023-10-31 18:49:00 +01:00
light.c ddraw: Use CRT allocation functions. 2023-10-31 18:49:00 +01:00
main.c ddraw: Use CRT allocation functions. 2023-10-31 18:49:00 +01:00
Makefile.in makefiles: Always use the global SOURCES variable for .idl files. 2023-11-01 22:43:50 +01:00
material.c ddraw: Use CRT allocation functions. 2023-10-31 18:49:00 +01:00
palette.c ddraw: Use CRT allocation functions. 2023-10-31 18:49:00 +01:00
surface.c ddraw: Release only valid texture parents on ddraw_texture_init failure. 2024-03-15 15:06:37 +01:00
utils.c ddraw: Use the debugstr_fourcc function instead of reimplementing it. 2023-10-06 20:49:53 +02:00
version.rc
vertexbuffer.c ddraw: Use CRT allocation functions. 2023-10-31 18:49:00 +01:00
viewport.c ddraw: Use CRT allocation functions. 2023-10-31 18:49:00 +01:00