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
3f1e3008
Commit
3f1e3008
authored
Mar 28, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Clear the cert pointer in MsiGetFileSignatureInformation.
parent
d351a999
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
msi.c
dlls/msi/msi.c
+1
-0
msi.c
dlls/msi/tests/msi.c
+2
-0
No files found.
dlls/msi/msi.c
View file @
3f1e3008
...
...
@@ -2580,6 +2580,7 @@ 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
);
*
cert
=
NULL
;
if
(
FAILED
(
hr
))
goto
done
;
if
(
!
(
signer
=
WTHelperGetProvSignerFromChain
(
data
.
hWVTStateData
,
0
,
FALSE
,
0
)))
...
...
dlls/msi/tests/msi.c
View file @
3f1e3008
...
...
@@ -11794,8 +11794,10 @@ static void test_MsiGetFileSignatureInformation(void)
hr
=
MsiGetFileSignatureInformationA
(
"signature.bin"
,
0
,
NULL
,
NULL
,
&
len
);
ok
(
hr
==
E_INVALIDARG
,
"expected E_INVALIDARG got 0x%08x
\n
"
,
hr
);
cert
=
(
const
CERT_CONTEXT
*
)
0xdeadbeef
;
hr
=
MsiGetFileSignatureInformationA
(
"signature.bin"
,
0
,
&
cert
,
NULL
,
&
len
);
todo_wine
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_FUNCTION_FAILED
),
"got 0x%08x
\n
"
,
hr
);
ok
(
cert
==
NULL
,
"got %p
\n
"
,
cert
);
DeleteFileA
(
"signature.bin"
);
}
...
...
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