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
76066d1c
Commit
76066d1c
authored
Oct 14, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Use Context_AddRef instead of WINE_CONTEXT_INTERFACE.
parent
993691be
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
8 deletions
+6
-8
collectionstore.c
dlls/crypt32/collectionstore.c
+1
-1
context.c
dlls/crypt32/context.c
+1
-1
crypt32_private.h
dlls/crypt32/crypt32_private.h
+0
-2
object.c
dlls/crypt32/object.c
+4
-1
store.c
dlls/crypt32/store.c
+0
-3
No files found.
dlls/crypt32/collectionstore.c
View file @
76066d1c
...
...
@@ -161,7 +161,7 @@ static void *CRYPT_CollectionAdvanceEnum(WINE_COLLECTIONSTORE *store,
* the free(pPrev) below can cause the ref count to become negative.
*/
child
=
Context_GetLinkedContext
(
pPrev
);
contextInterface
->
duplicate
(
child
);
Context_AddRef
(
context_from_ptr
(
child
)
);
child
=
contextFuncs
->
enumContext
(
storeEntry
->
store
,
child
);
contextInterface
->
free
(
pPrev
);
pPrev
=
NULL
;
...
...
dlls/crypt32/context.c
View file @
76066d1c
...
...
@@ -235,7 +235,7 @@ void *ContextList_Enum(struct ContextList *list, void *pPrev)
if
(
listNext
)
{
ret
=
ContextList_EntryToContext
(
list
,
listNext
);
list
->
contextInterface
->
duplicate
(
ret
);
Context_AddRef
(
context_from_ptr
(
ret
)
);
}
else
ret
=
NULL
;
...
...
dlls/crypt32/crypt32_private.h
View file @
76066d1c
...
...
@@ -217,7 +217,6 @@ typedef BOOL (WINAPI *AddContextToStoreFunc)(HCERTSTORE hCertStore,
typedef
BOOL
(
WINAPI
*
AddEncodedContextToStoreFunc
)(
HCERTSTORE
hCertStore
,
DWORD
dwCertEncodingType
,
const
BYTE
*
pbEncoded
,
DWORD
cbEncoded
,
DWORD
dwAddDisposition
,
const
void
**
ppContext
);
typedef
const
void
*
(
WINAPI
*
DuplicateContextFunc
)(
const
void
*
context
);
typedef
const
void
*
(
WINAPI
*
EnumContextsInStoreFunc
)(
HCERTSTORE
hCertStore
,
const
void
*
pPrevContext
);
typedef
DWORD
(
WINAPI
*
EnumPropertiesFunc
)(
const
void
*
context
,
DWORD
dwPropId
);
...
...
@@ -236,7 +235,6 @@ typedef struct _WINE_CONTEXT_INTERFACE
CreateContextFunc
create
;
AddContextToStoreFunc
addContextToStore
;
AddEncodedContextToStoreFunc
addEncodedToStore
;
DuplicateContextFunc
duplicate
;
EnumContextsInStoreFunc
enumContextsInStore
;
EnumPropertiesFunc
enumProps
;
GetContextPropertyFunc
getProp
;
...
...
dlls/crypt32/object.c
View file @
76066d1c
...
...
@@ -271,7 +271,10 @@ static BOOL CRYPT_QuerySerializedContextObject(DWORD dwObjectType,
*
phCertStore
=
CertDuplicateStore
(
*
(
HCERTSTORE
*
)((
const
BYTE
*
)
context
+
certStoreOffset
));
if
(
ppvContext
)
*
ppvContext
=
contextInterface
->
duplicate
(
context
);
{
*
ppvContext
=
context
;
Context_AddRef
(
context_from_ptr
(
context
));
}
}
end:
...
...
dlls/crypt32/store.c
View file @
76066d1c
...
...
@@ -45,7 +45,6 @@ static const WINE_CONTEXT_INTERFACE gCertInterface = {
(
CreateContextFunc
)
CertCreateCertificateContext
,
(
AddContextToStoreFunc
)
CertAddCertificateContextToStore
,
(
AddEncodedContextToStoreFunc
)
CertAddEncodedCertificateToStore
,
(
DuplicateContextFunc
)
CertDuplicateCertificateContext
,
(
EnumContextsInStoreFunc
)
CertEnumCertificatesInStore
,
(
EnumPropertiesFunc
)
CertEnumCertificateContextProperties
,
(
GetContextPropertyFunc
)
CertGetCertificateContextProperty
,
...
...
@@ -60,7 +59,6 @@ static const WINE_CONTEXT_INTERFACE gCRLInterface = {
(
CreateContextFunc
)
CertCreateCRLContext
,
(
AddContextToStoreFunc
)
CertAddCRLContextToStore
,
(
AddEncodedContextToStoreFunc
)
CertAddEncodedCRLToStore
,
(
DuplicateContextFunc
)
CertDuplicateCRLContext
,
(
EnumContextsInStoreFunc
)
CertEnumCRLsInStore
,
(
EnumPropertiesFunc
)
CertEnumCRLContextProperties
,
(
GetContextPropertyFunc
)
CertGetCRLContextProperty
,
...
...
@@ -75,7 +73,6 @@ static const WINE_CONTEXT_INTERFACE gCTLInterface = {
(
CreateContextFunc
)
CertCreateCTLContext
,
(
AddContextToStoreFunc
)
CertAddCTLContextToStore
,
(
AddEncodedContextToStoreFunc
)
CertAddEncodedCTLToStore
,
(
DuplicateContextFunc
)
CertDuplicateCTLContext
,
(
EnumContextsInStoreFunc
)
CertEnumCTLsInStore
,
(
EnumPropertiesFunc
)
CertEnumCTLContextProperties
,
(
GetContextPropertyFunc
)
CertGetCTLContextProperty
,
...
...
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