mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 13:30:44 +00:00
Fix crash if VkImportMemoryWin32HandleInfoKHR::name is NULL
This commit is contained in:
@@ -3168,13 +3168,13 @@ void DoSerialise(SerialiserType &ser, VkImportMemoryWin32HandleInfoKHR &el)
|
||||
}
|
||||
|
||||
{
|
||||
std::string name = StringFormat::Wide2UTF8(std::wstring(el.name));
|
||||
std::string name = el.name ? StringFormat::Wide2UTF8(std::wstring(el.name)) : "";
|
||||
|
||||
ser.Serialise("name", name);
|
||||
|
||||
// we don't expose UTF82Wide on all platforms, but as above this struct won't be valid anyway
|
||||
if(ser.IsReading())
|
||||
el.name = L"???";
|
||||
el.name = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user