Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ddb564bf
Commit
ddb564bf
authored
Apr 13, 2007
by
Huw Davies
Committed by
Alexandre Julliard
Apr 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imagehlp: Add support for the indices array passed to ImageEnumerateCertificates.
parent
fffe9ba4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
integrity.c
dlls/imagehlp/integrity.c
+5
-7
No files found.
dlls/imagehlp/integrity.c
View file @
ddb564bf
...
...
@@ -161,7 +161,7 @@ BOOL WINAPI ImageEnumerateCertificates(
HANDLE
handle
,
WORD
TypeFilter
,
PDWORD
CertificateCount
,
PDWORD
Indices
,
DWORD
IndexCount
)
{
DWORD
size
,
count
,
offset
,
sd_VirtualAddr
;
DWORD
size
,
count
,
offset
,
sd_VirtualAddr
,
index
;
WIN_CERTIFICATE
hdr
;
const
size_t
cert_hdr_size
=
sizeof
hdr
-
sizeof
hdr
.
bCertificate
;
BOOL
r
;
...
...
@@ -169,17 +169,12 @@ BOOL WINAPI ImageEnumerateCertificates(
TRACE
(
"%p %hd %p %p %d
\n
"
,
handle
,
TypeFilter
,
CertificateCount
,
Indices
,
IndexCount
);
if
(
Indices
)
{
FIXME
(
"Indices not handled!
\n
"
);
return
FALSE
;
}
r
=
IMAGEHLP_GetSecurityDirOffset
(
handle
,
&
sd_VirtualAddr
,
&
size
);
if
(
!
r
)
return
FALSE
;
offset
=
0
;
index
=
0
;
*
CertificateCount
=
0
;
while
(
offset
<
size
)
{
...
...
@@ -207,10 +202,13 @@ BOOL WINAPI ImageEnumerateCertificates(
(
TypeFilter
==
hdr
.
wCertificateType
)
)
{
(
*
CertificateCount
)
++
;
if
(
Indices
&&
*
CertificateCount
<=
IndexCount
)
*
Indices
++
=
index
;
}
/* next certificate */
offset
+=
hdr
.
dwLength
;
index
++
;
}
return
TRUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment