mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
imagehlp: Set Index in ImageAddCertificate function.
This commit is contained in:
parent
f3f59d2cf8
commit
0cd94ac51f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user