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
e5e05b97
Commit
e5e05b97
authored
Jul 31, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jul 31, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Create a dummy context to force creation of MachineGuid registry key.
parent
f6522833
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
register.c
dlls/wintrust/register.c
+7
-0
No files found.
dlls/wintrust/register.c
View file @
e5e05b97
...
...
@@ -960,6 +960,8 @@ HRESULT WINAPI DllRegisterServer(void)
HRESULT
CryptRegisterRes
=
S_OK
;
HRESULT
TrustProviderRes
=
S_OK
;
HRESULT
SIPAddProviderRes
=
S_OK
;
HCRYPTPROV
crypt_provider
;
BOOL
ret
;
TRACE
(
"
\n
"
);
...
...
@@ -1077,6 +1079,11 @@ add_trust_providers:
* a trust provider without a diagnostic policy).
*/
/* Create a dummy context to force creation of the MachineGuid registry key. */
ret
=
CryptAcquireContextW
(
&
crypt_provider
,
NULL
,
NULL
,
PROV_RSA_FULL
,
CRYPT_VERIFYCONTEXT
);
if
(
ret
)
CryptReleaseContext
(
crypt_provider
,
0
);
else
ERR
(
"Failed to acquire cryptographic context: %u
\n
"
,
GetLastError
());
/* If CryptRegisterRes is not S_OK it will always overrule the return value. */
if
(
CryptRegisterRes
!=
S_OK
)
return
CryptRegisterRes
;
...
...
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