Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9132cac9
Commit
9132cac9
authored
Sep 06, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Only register actions when…
wintrust: Only register actions when HKLM\Software\Microsoft\Cryptography\Providers\Trust can be opened.
parent
609b7af8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
18 deletions
+26
-18
register.c
dlls/wintrust/register.c
+26
-18
No files found.
dlls/wintrust/register.c
View file @
9132cac9
...
...
@@ -708,9 +708,6 @@ HRESULT WINAPI DllRegisterServer(void)
TRACE
(
"
\n
"
);
/* Create the necessary action registry structures */
WINTRUST_InitRegStructs
();
/* FIXME:
*
* A short list of stuff that should be done here:
...
...
@@ -731,22 +728,33 @@ HRESULT WINAPI DllRegisterServer(void)
/* Check if we can open/create HKLM\Software\Microsoft\Cryptography\Providers\Trust */
if
(
RegCreateKeyExW
(
HKEY_LOCAL_MACHINE
,
Trust
,
0
,
NULL
,
0
,
KEY_WRITE
,
NULL
,
&
Key
,
NULL
)
!=
ERROR_SUCCESS
)
{
/* If the opening/creation of the key fails, there is no need to do the action registrations as they
* will fail as well.
*/
Res
=
S_FALSE
;
RegCloseKey
(
Key
);
/* Register several Trust Provider actions */
WINTRUST_RegisterGenVerifyV2
();
WINTRUST_RegisterPublishedSoftware
();
WINTRUST_RegisterPublishedSoftwareNoBadUi
();
WINTRUST_RegisterGenCertVerify
();
WINTRUST_RegisterTrustProviderTest
();
WINTRUST_RegisterHttpsProv
();
WINTRUST_RegisterOfficeSignVerify
();
WINTRUST_RegisterDriverVerify
();
WINTRUST_RegisterGenChainVerify
();
/* Free the registry structures */
WINTRUST_FreeRegStructs
();
}
else
{
RegCloseKey
(
Key
);
/* Create the necessary action registry structures */
WINTRUST_InitRegStructs
();
/* Register several Trust Provider actions */
WINTRUST_RegisterGenVerifyV2
();
WINTRUST_RegisterPublishedSoftware
();
WINTRUST_RegisterPublishedSoftwareNoBadUi
();
WINTRUST_RegisterGenCertVerify
();
WINTRUST_RegisterTrustProviderTest
();
WINTRUST_RegisterHttpsProv
();
WINTRUST_RegisterOfficeSignVerify
();
WINTRUST_RegisterDriverVerify
();
WINTRUST_RegisterGenChainVerify
();
/* Free the registry structures */
WINTRUST_FreeRegStructs
();
}
return
Res
;
}
...
...
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