Module: wine Branch: master Commit: 780ae3a6e428b14fb26c2393f6ed4127b092d66e URL: http://source.winehq.org/git/wine.git/?a=commit;h=780ae3a6e428b14fb26c2393f6...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Wed Dec 23 13:46:43 2009 +0100
imagehlp/tests: Fix a test failure on Win95.
---
dlls/imagehlp/tests/integrity.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/dlls/imagehlp/tests/integrity.c b/dlls/imagehlp/tests/integrity.c index a551d1f..6f297dc 100644 --- a/dlls/imagehlp/tests/integrity.c +++ b/dlls/imagehlp/tests/integrity.c @@ -250,6 +250,15 @@ START_TEST(integrity) }
file_size_orig = get_file_size(); + /* + * Align file_size_orig to an 8-byte boundary. This avoids tests failures where + * the original dll is not correctly aligned (but when written to it will be). + */ + if (file_size_orig % 8 != 0) + { + skip("We need to align to an 8-byte boundary\n"); + file_size_orig = (file_size_orig + 7) & ~7; + }
pImageAddCertificate = (void *) GetProcAddress(hImageHlp, "ImageAddCertificate"); pImageEnumerateCertificates = (void *) GetProcAddress(hImageHlp, "ImageEnumerateCertificates");