This commit is contained in:
2026-06-13 23:43:20 +02:00
parent 947ea6698d
commit 92eb9456bc
3 changed files with 5 additions and 3 deletions

View File

@@ -328,9 +328,11 @@ MIHP_HeapError MIHP_Free(MIHP_Heap* heap, void* ptr)
if (segment->OccupiedSize == 0)
{
MIHP_HeapCorruptionInfo corruptionInfo = { 0 };
MIHP_HeapCorruptionInfo corruptionInfo;
corruptionInfo.Error = MIHP_HCE_DoubleFree;
corruptionInfo.Ptr = ptr;
corruptionInfo.ExpectedValue = 0;
corruptionInfo.ActualValue = 0;
if (heap->Config.OnHeapCorruptionDetectedFn != NULL)
heap->Config.OnHeapCorruptionDetectedFn(heap, corruptionInfo);

View File

@@ -124,7 +124,7 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="minimal_heap_test.cpp" />
<ClCompile Include="minimal_heap_test.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="minimal_heap.h" />

View File

@@ -15,7 +15,7 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="minimal_heap_test.cpp">
<ClCompile Include="minimal_heap_test.c">
<Filter>Quelldateien</Filter>
</ClCompile>
</ItemGroup>