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
741b0f37
Commit
741b0f37
authored
Apr 14, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix a memory leak (valgrind).
parent
846811be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
msi.c
dlls/msi/msi.c
+18
-7
No files found.
dlls/msi/msi.c
View file @
741b0f37
...
...
@@ -2395,25 +2395,36 @@ HRESULT WINAPI MsiGetFileSignatureInformationW( LPCWSTR path, DWORD flags, PCCER
data
.
dwProvFlags
=
0
;
data
.
dwUIContext
=
WTD_UICONTEXT_INSTALL
;
hr
=
WinVerifyTrustEx
(
INVALID_HANDLE_VALUE
,
&
generic_verify_v2
,
&
data
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
FAILED
(
hr
))
goto
done
;
signer
=
WTHelperGetProvSignerFromChain
(
data
.
hWVTStateData
,
0
,
FALSE
,
0
);
if
(
!
signer
)
return
TRUST_E_NOSIGNATURE
;
if
(
!
(
signer
=
WTHelperGetProvSignerFromChain
(
data
.
hWVTStateData
,
0
,
FALSE
,
0
)))
{
hr
=
TRUST_E_NOSIGNATURE
;
goto
done
;
}
if
(
hash
)
{
DWORD
len
=
signer
->
psSigner
->
EncryptedHash
.
cbData
;
if
(
*
hashlen
<
len
)
{
*
hashlen
=
len
;
return
HRESULT_FROM_WIN32
(
ERROR_MORE_DATA
);
hr
=
HRESULT_FROM_WIN32
(
ERROR_MORE_DATA
);
goto
done
;
}
memcpy
(
hash
,
signer
->
psSigner
->
EncryptedHash
.
pbData
,
len
);
*
hashlen
=
len
;
}
provider
=
WTHelperGetProvCertFromChain
(
signer
,
0
);
if
(
!
provider
)
return
TRUST_E_PROVIDER_UNKNOWN
;
if
(
!
(
provider
=
WTHelperGetProvCertFromChain
(
signer
,
0
)))
{
hr
=
TRUST_E_PROVIDER_UNKNOWN
;
goto
done
;
}
*
cert
=
CertDuplicateCertificateContext
(
provider
->
pCert
);
return
S_OK
;
done:
data
.
dwStateAction
=
WTD_STATEACTION_CLOSE
;
WinVerifyTrustEx
(
INVALID_HANDLE_VALUE
,
&
generic_verify_v2
,
&
data
);
return
hr
;
}
/******************************************************************
...
...
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