Fix uninitialised struct being accessed in next chain unwrap helper

This commit is contained in:
baldurk
2025-01-16 19:43:03 +00:00
parent 9cfb2acdfa
commit e8abd693c6
+1 -1
View File
@@ -408,7 +408,7 @@ void CopyNextChainForPatching(const char *structName, byte *&tempMem, VkBaseInSt
template <typename VkStruct>
VkStruct *UnwrapStructAndChain(CaptureState state, byte *&tempMem, const VkStruct *base)
{
VkBaseInStructure dummy;
VkBaseInStructure dummy = {};
dummy.pNext = (const VkBaseInStructure *)base;
UnwrapNextChain(state, TypeName<VkStruct>().c_str(), tempMem, &dummy);