[2/4] imagehlp/tests: Add tests for adding/removing multiple certificates

Owen Rudge owen at owenrudge.net
Tue Dec 22 10:13:41 CST 2009


Hi Paul,

> Would something like this be ok:
>
> file_size_orig = get_file_size();
> + if (file_size_orig % 16 != 0)
> + {
> + trace("We need to adjust the file size\n");
> + file_size_orig = ((file_size_orig / 16) + 1) * 16;
> + }
>
> Does anybody know if '16' is indeed the alignment needed?

The ImageHlp routines pad out to an 8-byte boundary, rather than 16 
bytes. I guess as long as we're testing a DLL that we don't control, 
this step may well be necessary.

Cheers,

-- 
Owen Rudge
http://www.owenrudge.net/



More information about the wine-devel mailing list