From cfc68a96c785f29dc392ae9701c433aa44e1025e Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Mon, 18 Aug 2008 22:55:29 -0500 Subject: [PATCH] fusion: Align the metadata header pointer on a DWORD boundary. --- dlls/fusion/assembly.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/fusion/assembly.c b/dlls/fusion/assembly.c index fc44e49f332..75ca048053c 100644 --- a/dlls/fusion/assembly.c +++ b/dlls/fusion/assembly.c @@ -632,8 +632,8 @@ static HRESULT parse_clr_metadata(ASSEMBLY *assembly) else if (!lstrcmpA(stream, "#Blob") || !lstrcmpA(stream, "Blob")) assembly->blobs = (BYTE *)assembly_data_offset(assembly, ofs); - ptr += lstrlenA(stream); - while (!*ptr) ptr++; + ptr += lstrlenA(stream) + 1; + ptr = (BYTE *)(((UINT_PTR)ptr + 3) & ~3); /* align on DWORD boundary */ } return S_OK; -- 2.11.4.GIT