fusion: Fix alignment in parse_clr_metadata.

Hans Leidekker hans at codeweavers.com
Mon May 6 03:07:00 CDT 2013


---
 dlls/fusion/assembly.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/fusion/assembly.c b/dlls/fusion/assembly.c
index 920d8db..c2f98ec 100644
--- a/dlls/fusion/assembly.c
+++ b/dlls/fusion/assembly.c
@@ -595,8 +595,7 @@ static HRESULT parse_clr_metadata(ASSEMBLY *assembly)
         else if (!lstrcmpA(stream, "#Blob") || !lstrcmpA(stream, "Blob"))
             assembly->blobs = assembly_data_offset(assembly, ofs);
 
-        ptr += lstrlenA(stream) + 1;
-        ptr = (BYTE *)(((UINT_PTR)ptr + 3) & ~3); /* align on DWORD boundary */
+        ptr += ((lstrlenA(stream) + 1) + 3) & ~3; /* align on DWORD boundary */
     }
 
     return S_OK;
-- 
1.7.10.4






More information about the wine-patches mailing list