mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Fix uninitialised struct being accessed in next chain unwrap helper
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user