diff --git a/video/d3d.c b/video/d3d.c index baa33d2f6f..ceddcf37a9 100644 --- a/video/d3d.c +++ b/video/d3d.c @@ -186,7 +186,7 @@ AVBufferRef *d3d9_wrap_device_ref(IDirect3DDevice9 *device) if (FAILED(hr)) goto fail; - IDirect3DDeviceManager9_ResetDevice(hwctx->devmgr, device, reset_token); + hr = IDirect3DDeviceManager9_ResetDevice(hwctx->devmgr, device, reset_token); if (FAILED(hr)) goto fail; diff --git a/video/out/vulkan/context.c b/video/out/vulkan/context.c index fda56bd829..5087403ade 100644 --- a/video/out/vulkan/context.c +++ b/video/out/vulkan/context.c @@ -66,7 +66,7 @@ static int vk_validate_dev(struct mp_log *log, const struct m_option *opt, goto done; devices = talloc_array(NULL, VkPhysicalDevice, num); - vkEnumeratePhysicalDevices(inst, &num, devices); + res = vkEnumeratePhysicalDevices(inst, &num, devices); if (res != VK_SUCCESS) goto done;