vkd3d: Use debugstr_hresult() in d3d12_device_mark_as_removed().

This commit is contained in:
Henri Verbeet 2024-01-30 13:27:51 +01:00 committed by Alexandre Julliard
parent 920f5293e9
commit 6dea3d08b1
Notes: Alexandre Julliard 2024-02-01 00:32:23 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/620

View File

@ -4473,8 +4473,8 @@ void d3d12_device_mark_as_removed(struct d3d12_device *device, HRESULT reason,
va_list args; va_list args;
va_start(args, message); va_start(args, message);
WARN("Device %p is lost (reason %#x, \"%s\").\n", WARN("Device %p is lost (reason %s, \"%s\").\n",
device, reason, vkd3d_dbg_vsprintf(message, args)); device, debugstr_hresult(reason), vkd3d_dbg_vsprintf(message, args));
va_end(args); va_end(args);
device->removed_reason = reason; device->removed_reason = reason;