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
7e1cff1c
Commit
7e1cff1c
authored
Oct 30, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Nov 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Release contexts when removing them from the mem store.
parent
df39bbba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
store.c
dlls/crypt32/store.c
+3
-3
store.c
dlls/crypt32/tests/store.c
+1
-0
No files found.
dlls/crypt32/store.c
View file @
7e1cff1c
...
...
@@ -186,7 +186,7 @@ static BOOL CRYPT_MemDeleteCert(PWINECRYPT_CERTSTORE store, void *pCertContext)
WINE_MEMSTORE
*
ms
=
(
WINE_MEMSTORE
*
)
store
;
ContextList_Delete
(
ms
->
certs
,
pCertContext
);
return
TRUE
;
return
CertFreeCertificateContext
(
pCertContext
)
;
}
static
BOOL
CRYPT_MemAddCrl
(
PWINECRYPT_CERTSTORE
store
,
void
*
crl
,
...
...
@@ -227,7 +227,7 @@ static BOOL CRYPT_MemDeleteCrl(PWINECRYPT_CERTSTORE store, void *pCrlContext)
WINE_MEMSTORE
*
ms
=
(
WINE_MEMSTORE
*
)
store
;
ContextList_Delete
(
ms
->
crls
,
pCrlContext
);
return
TRUE
;
return
CertFreeCRLContext
(
pCrlContext
)
;
}
static
BOOL
CRYPT_MemAddCtl
(
PWINECRYPT_CERTSTORE
store
,
void
*
ctl
,
...
...
@@ -268,7 +268,7 @@ static BOOL CRYPT_MemDeleteCtl(PWINECRYPT_CERTSTORE store, void *pCtlContext)
WINE_MEMSTORE
*
ms
=
(
WINE_MEMSTORE
*
)
store
;
ContextList_Delete
(
ms
->
ctls
,
pCtlContext
);
return
TRUE
;
return
CertFreeCTLContext
(
pCtlContext
)
;
}
static
void
WINAPI
CRYPT_MemCloseStore
(
HCERTSTORE
hCertStore
,
DWORD
dwFlags
)
...
...
dlls/crypt32/tests/store.c
View file @
7e1cff1c
...
...
@@ -237,6 +237,7 @@ static void testMemStore(void)
GetLastError
());
/* try deleting a copy */
ret
=
CertDeleteCertificateFromStore
(
copy
);
todo_wine
ok
(
ret
,
"CertDeleteCertificateFromStore failed: %08x
\n
"
,
GetLastError
());
/* check that the store is empty */
...
...
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