Francois Gouget : fusion: Fix compilation on systems that don' t support nameless unions.
Alexandre Julliard
julliard at winehq.org
Tue May 6 09:32:19 CDT 2008
Module: wine
Branch: master
Commit: 10a25c384f413a3b6348b491914aa0c8a82051b4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=10a25c384f413a3b6348b491914aa0c8a82051b4
Author: Francois Gouget <fgouget at free.fr>
Date: Tue May 6 15:54:15 2008 +0200
fusion: Fix compilation on systems that don't support nameless unions.
---
dlls/fusion/assembly.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/fusion/assembly.c b/dlls/fusion/assembly.c
index 2110ba5..8973af3 100644
--- a/dlls/fusion/assembly.c
+++ b/dlls/fusion/assembly.c
@@ -230,8 +230,8 @@ static HRESULT parse_clr_tables(ASSEMBLY *assembly, ULONG offset)
assembly->numtables = 0;
for (i = 0; i < MAX_CLR_TABLES; i++)
{
- if ((i < 32 && (assembly->tableshdr->MaskValid.LowPart >> i) & 1) ||
- (i >= 32 && (assembly->tableshdr->MaskValid.HighPart >> i) & 1))
+ if ((i < 32 && (assembly->tableshdr->MaskValid.u.LowPart >> i) & 1) ||
+ (i >= 32 && (assembly->tableshdr->MaskValid.u.HighPart >> i) & 1))
{
assembly->numtables++;
}
@@ -240,7 +240,7 @@ static HRESULT parse_clr_tables(ASSEMBLY *assembly, ULONG offset)
currofs += assembly->numtables * sizeof(DWORD);
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].rows = assembly->numrows[0];
@@ -250,8 +250,8 @@ static HRESULT parse_clr_tables(ASSEMBLY *assembly, ULONG offset)
offidx = 1;
for (i = 1; i < MAX_CLR_TABLES; i++)
{
- if ((i < 32 && (assembly->tableshdr->MaskValid.LowPart >> i) & 1) ||
- (i >= 32 && (assembly->tableshdr->MaskValid.HighPart >> i) & 1))
+ if ((i < 32 && (assembly->tableshdr->MaskValid.u.LowPart >> i) & 1) ||
+ (i >= 32 && (assembly->tableshdr->MaskValid.u.HighPart >> i) & 1))
{
currofs += COR_TABLE_SIZES[previ] * assembly->numrows[offidx - 1];
assembly->tables[i].offset = currofs;
More information about the wine-cvs
mailing list