Commit 10a25c38 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

fusion: Fix compilation on systems that don't support nameless unions.

parent 928048b5
...@@ -230,8 +230,8 @@ static HRESULT parse_clr_tables(ASSEMBLY *assembly, ULONG offset) ...@@ -230,8 +230,8 @@ static HRESULT parse_clr_tables(ASSEMBLY *assembly, ULONG offset)
assembly->numtables = 0; assembly->numtables = 0;
for (i = 0; i < MAX_CLR_TABLES; i++) for (i = 0; i < MAX_CLR_TABLES; i++)
{ {
if ((i < 32 && (assembly->tableshdr->MaskValid.LowPart >> i) & 1) || if ((i < 32 && (assembly->tableshdr->MaskValid.u.LowPart >> i) & 1) ||
(i >= 32 && (assembly->tableshdr->MaskValid.HighPart >> i) & 1)) (i >= 32 && (assembly->tableshdr->MaskValid.u.HighPart >> i) & 1))
{ {
assembly->numtables++; assembly->numtables++;
} }
...@@ -240,7 +240,7 @@ static HRESULT parse_clr_tables(ASSEMBLY *assembly, ULONG offset) ...@@ -240,7 +240,7 @@ static HRESULT parse_clr_tables(ASSEMBLY *assembly, ULONG offset)
currofs += assembly->numtables * sizeof(DWORD); currofs += assembly->numtables * sizeof(DWORD);
memset(assembly->tables, -1, MAX_CLR_TABLES * sizeof(CLRTABLE)); memset(assembly->tables, -1, MAX_CLR_TABLES * sizeof(CLRTABLE));
if (assembly->tableshdr->MaskValid.LowPart & 1) if (assembly->tableshdr->MaskValid.u.LowPart & 1)
{ {
assembly->tables[0].offset = currofs; assembly->tables[0].offset = currofs;
assembly->tables[0].rows = assembly->numrows[0]; assembly->tables[0].rows = assembly->numrows[0];
...@@ -250,8 +250,8 @@ static HRESULT parse_clr_tables(ASSEMBLY *assembly, ULONG offset) ...@@ -250,8 +250,8 @@ static HRESULT parse_clr_tables(ASSEMBLY *assembly, ULONG offset)
offidx = 1; offidx = 1;
for (i = 1; i < MAX_CLR_TABLES; i++) for (i = 1; i < MAX_CLR_TABLES; i++)
{ {
if ((i < 32 && (assembly->tableshdr->MaskValid.LowPart >> i) & 1) || if ((i < 32 && (assembly->tableshdr->MaskValid.u.LowPart >> i) & 1) ||
(i >= 32 && (assembly->tableshdr->MaskValid.HighPart >> i) & 1)) (i >= 32 && (assembly->tableshdr->MaskValid.u.HighPart >> i) & 1))
{ {
currofs += COR_TABLE_SIZES[previ] * assembly->numrows[offidx - 1]; currofs += COR_TABLE_SIZES[previ] * assembly->numrows[offidx - 1];
assembly->tables[i].offset = currofs; assembly->tables[i].offset = currofs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment