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
1dce5ed3
Commit
1dce5ed3
authored
Oct 18, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Free root store when quitting.
parent
d8fb290e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
crypt32_private.h
dlls/crypt32/crypt32_private.h
+1
-0
main.c
dlls/crypt32/main.c
+1
-0
rootstore.c
dlls/crypt32/rootstore.c
+5
-0
No files found.
dlls/crypt32/crypt32_private.h
View file @
1dce5ed3
...
@@ -126,6 +126,7 @@ HCRYPTPROV CRYPT_GetDefaultProvider(void);
...
@@ -126,6 +126,7 @@ HCRYPTPROV CRYPT_GetDefaultProvider(void);
void
crypt_oid_init
(
HINSTANCE
hinst
);
void
crypt_oid_init
(
HINSTANCE
hinst
);
void
crypt_oid_free
(
void
);
void
crypt_oid_free
(
void
);
void
crypt_sip_free
(
void
);
void
crypt_sip_free
(
void
);
void
root_store_free
(
void
);
void
default_chain_engine_free
(
void
);
void
default_chain_engine_free
(
void
);
/* Some typedefs that make it easier to abstract which type of context we're
/* Some typedefs that make it easier to abstract which type of context we're
...
...
dlls/crypt32/main.c
View file @
1dce5ed3
...
@@ -45,6 +45,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, PVOID pvReserved)
...
@@ -45,6 +45,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, PVOID pvReserved)
case
DLL_PROCESS_DETACH
:
case
DLL_PROCESS_DETACH
:
crypt_oid_free
();
crypt_oid_free
();
crypt_sip_free
();
crypt_sip_free
();
root_store_free
();
default_chain_engine_free
();
default_chain_engine_free
();
if
(
hDefProv
)
CryptReleaseContext
(
hDefProv
,
0
);
if
(
hDefProv
)
CryptReleaseContext
(
hDefProv
,
0
);
break
;
break
;
...
...
dlls/crypt32/rootstore.c
View file @
1dce5ed3
...
@@ -504,3 +504,8 @@ PWINECRYPT_CERTSTORE CRYPT_RootOpenStore(HCRYPTPROV hCryptProv, DWORD dwFlags)
...
@@ -504,3 +504,8 @@ PWINECRYPT_CERTSTORE CRYPT_RootOpenStore(HCRYPTPROV hCryptProv, DWORD dwFlags)
CertDuplicateStore
(
CRYPT_rootStore
);
CertDuplicateStore
(
CRYPT_rootStore
);
return
CRYPT_rootStore
;
return
CRYPT_rootStore
;
}
}
void
root_store_free
(
void
)
{
CertCloseStore
(
CRYPT_rootStore
,
0
);
}
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