winevulkan: Fix vkDestroyDebugUtilsMessengerEXT with NULL object.

Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Georg Lehmann 2021-02-03 21:13:34 +01:00 committed by Alexandre Julliard
parent c66e0e5723
commit ffd58f6275
1 changed files with 3 additions and 0 deletions

View File

@ -1940,6 +1940,9 @@ void WINAPI wine_vkDestroyDebugUtilsMessengerEXT(
object = wine_debug_utils_messenger_from_handle(messenger);
if (!object)
return;
instance->funcs.p_vkDestroyDebugUtilsMessengerEXT(instance->instance, object->debug_messenger, NULL);
WINE_VK_REMOVE_HANDLE_MAPPING(instance, object);