Hans Leidekker : fusion: Fix alignment in parse_clr_metadata.

Alexandre Julliard julliard at winehq.org
Mon May 6 14:08:45 CDT 2013


Module: wine
Branch: master
Commit: aca88c2f80719bd6b5b3487b02c35de075cb49ef
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=aca88c2f80719bd6b5b3487b02c35de075cb49ef

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Mon May  6 10:07:00 2013 +0200

fusion: Fix alignment in parse_clr_metadata.

---

 dlls/fusion/assembly.c |    3 +--
 1 files changed, 1 insertions(+), 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;




More information about the wine-cvs mailing list