Move variable declaration to prevent issue with old Microsoft compilers.
@@ -1442,6 +1442,7 @@ void dotnet_parse_tilde(
// number of rows being indexed into.
ROWS rows;
INDEX_SIZES index_sizes;
+ uint32_t heap_sizes;
// Default all rows to 0. They will be set to actual values later on, if
// they exist in the file.
@@ -1458,13 +1459,15 @@ void dotnet_parse_tilde(
if (!struct_fits_in_pe(pe, tilde_header, TILDE_HEADER))
return;
- uint32_t heap_sizes = yr_le32toh(tilde_header->HeapSizes);
+ heap_sizes = yr_le32toh(tilde_header->HeapSizes);
// Set index sizes for various heaps.
if (heap_sizes & 0x01)
index_sizes.string = 4;
+
if (heap_sizes & 0x02)
index_sizes.guid = 4;
+
if (heap_sizes & 0x04)
index_sizes.blob = 4;
