Module: wine Branch: master Commit: 0cd94ac51f5d7fd7d78f20848378cbbe269159a2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0cd94ac51f5d7fd7d78f208483...
Author: Piotr Caban piotr@codeweavers.com Date: Tue May 3 18:50:07 2011 +0200
imagehlp: Set Index in ImageAddCertificate function.
---
dlls/imagehlp/integrity.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/imagehlp/integrity.c b/dlls/imagehlp/integrity.c index 2c72948..005a75b 100644 --- a/dlls/imagehlp/integrity.c +++ b/dlls/imagehlp/integrity.c @@ -392,10 +392,6 @@ BOOL WINAPI ImageAddCertificate( /* If we've already got a security directory, find the end of it */ if ((r) && (sd_VirtualAddr != 0)) { - offset = 0; - index = 0; - count = 0; - /* Check if the security directory is at the end of the file. If not, we should probably relocate it. */ if (GetFileSize(FileHandle, NULL) != sd_VirtualAddr + size) @@ -479,6 +475,8 @@ BOOL WINAPI ImageAddCertificate( if (!IMAGEHLP_RecalculateChecksum(FileHandle)) return FALSE;
+ if(Index) + *Index = index; return TRUE; }