ddraw: Validate the "surface" pointer before creating the surface in CreateSurface().
commit062f1ae7524ef0049bbb8579bd6d03e6eca0be16
authorAlex Henrie <alexhenrie24@gmail.com>
Thu, 16 Feb 2017 14:12:15 +0000 (16 15:12 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 16 Feb 2017 18:08:36 +0000 (16 19:08 +0100)
tree622056bc67fcd3a1f8cc33518f4b6ccdb422101e
parent438d0fed865b9e55dad0efa4dd98dc0afafe80a5
ddraw: Validate the "surface" pointer before creating the surface in CreateSurface().

And thereby avoid leaking the surface on the error path.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/ddraw/ddraw.c