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
09121895
Commit
09121895
authored
Oct 08, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Get rid of no longer used contextSize argument in Context_CopyProperties.
parent
c1fa23ac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
19 deletions
+11
-19
context.c
dlls/crypt32/context.c
+1
-2
crypt32_private.h
dlls/crypt32/crypt32_private.h
+1
-2
ctl.c
dlls/crypt32/ctl.c
+3
-6
store.c
dlls/crypt32/store.c
+6
-9
No files found.
dlls/crypt32/context.c
View file @
09121895
...
...
@@ -174,8 +174,7 @@ BOOL Context_Release(void *context, ContextFreeFunc dataContextFree)
return
ret
;
}
void
Context_CopyProperties
(
const
void
*
to
,
const
void
*
from
,
size_t
contextSize
)
void
Context_CopyProperties
(
const
void
*
to
,
const
void
*
from
)
{
CONTEXT_PROPERTY_LIST
*
toProperties
,
*
fromProperties
;
...
...
dlls/crypt32/crypt32_private.h
View file @
09121895
...
...
@@ -351,8 +351,7 @@ void *Context_GetExtra(const void *context, size_t contextSize) DECLSPEC_HIDDEN;
void
*
Context_GetLinkedContext
(
void
*
context
)
DECLSPEC_HIDDEN
;
/* Copies properties from fromContext to toContext. */
void
Context_CopyProperties
(
const
void
*
to
,
const
void
*
from
,
size_t
contextSize
)
DECLSPEC_HIDDEN
;
void
Context_CopyProperties
(
const
void
*
to
,
const
void
*
from
)
DECLSPEC_HIDDEN
;
/* Returns context's properties, or the linked context's properties if context
* is a link context.
...
...
dlls/crypt32/ctl.c
View file @
09121895
...
...
@@ -29,9 +29,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
crypt
);
#define CtlContext_CopyProperties(to, from) \
Context_CopyProperties((to), (from), sizeof(CTL_CONTEXT))
BOOL
WINAPI
CertAddCTLContextToStore
(
HCERTSTORE
hCertStore
,
PCCTL_CONTEXT
pCtlContext
,
DWORD
dwAddDisposition
,
PCCTL_CONTEXT
*
ppStoreContext
)
...
...
@@ -91,7 +88,7 @@ BOOL WINAPI CertAddCTLContextToStore(HCERTSTORE hCertStore,
if
(
newer
<
0
)
{
toAdd
=
CertDuplicateCTLContext
(
pCtlContext
);
C
tlC
ontext_CopyProperties
(
existing
,
pCtlContext
);
Context_CopyProperties
(
existing
,
pCtlContext
);
}
else
{
...
...
@@ -109,12 +106,12 @@ BOOL WINAPI CertAddCTLContextToStore(HCERTSTORE hCertStore,
case
CERT_STORE_ADD_REPLACE_EXISTING_INHERIT_PROPERTIES
:
toAdd
=
CertDuplicateCTLContext
(
pCtlContext
);
if
(
existing
)
C
tlC
ontext_CopyProperties
(
toAdd
,
existing
);
Context_CopyProperties
(
toAdd
,
existing
);
break
;
case
CERT_STORE_ADD_USE_EXISTING
:
if
(
existing
)
{
C
tlC
ontext_CopyProperties
(
existing
,
pCtlContext
);
Context_CopyProperties
(
existing
,
pCtlContext
);
if
(
ppStoreContext
)
*
ppStoreContext
=
CertDuplicateCTLContext
(
existing
);
}
...
...
dlls/crypt32/store.c
View file @
09121895
...
...
@@ -877,9 +877,6 @@ HCERTSTORE WINAPI CertOpenSystemStoreW(HCRYPTPROV_LEGACY hProv,
CERT_SYSTEM_STORE_CURRENT_USER
,
szSubSystemProtocol
);
}
#define CertContext_CopyProperties(to, from) \
Context_CopyProperties((to), (from), sizeof(CERT_CONTEXT))
BOOL
WINAPI
CertAddCertificateContextToStore
(
HCERTSTORE
hCertStore
,
PCCERT_CONTEXT
pCertContext
,
DWORD
dwAddDisposition
,
PCCERT_CONTEXT
*
ppStoreContext
)
...
...
@@ -944,12 +941,12 @@ BOOL WINAPI CertAddCertificateContextToStore(HCERTSTORE hCertStore,
case
CERT_STORE_ADD_REPLACE_EXISTING_INHERIT_PROPERTIES
:
toAdd
=
CertDuplicateCertificateContext
(
pCertContext
);
if
(
existing
)
C
ertC
ontext_CopyProperties
(
toAdd
,
existing
);
Context_CopyProperties
(
toAdd
,
existing
);
break
;
case
CERT_STORE_ADD_USE_EXISTING
:
if
(
existing
)
{
C
ertC
ontext_CopyProperties
(
existing
,
pCertContext
);
Context_CopyProperties
(
existing
,
pCertContext
);
if
(
ppStoreContext
)
*
ppStoreContext
=
CertDuplicateCertificateContext
(
existing
);
}
...
...
@@ -985,7 +982,7 @@ BOOL WINAPI CertAddCertificateContextToStore(HCERTSTORE hCertStore,
else
{
toAdd
=
CertDuplicateCertificateContext
(
pCertContext
);
C
ertC
ontext_CopyProperties
(
toAdd
,
existing
);
Context_CopyProperties
(
toAdd
,
existing
);
}
}
else
...
...
@@ -1116,7 +1113,7 @@ BOOL WINAPI CertAddCRLContextToStore(HCERTSTORE hCertStore,
if
(
newer
<
0
)
{
toAdd
=
CertDuplicateCRLContext
(
pCrlContext
);
C
rlC
ontext_CopyProperties
(
toAdd
,
existing
);
Context_CopyProperties
(
toAdd
,
existing
);
}
else
{
...
...
@@ -1134,12 +1131,12 @@ BOOL WINAPI CertAddCRLContextToStore(HCERTSTORE hCertStore,
case
CERT_STORE_ADD_REPLACE_EXISTING_INHERIT_PROPERTIES
:
toAdd
=
CertDuplicateCRLContext
(
pCrlContext
);
if
(
existing
)
C
rlC
ontext_CopyProperties
(
toAdd
,
existing
);
Context_CopyProperties
(
toAdd
,
existing
);
break
;
case
CERT_STORE_ADD_USE_EXISTING
:
if
(
existing
)
{
C
rlC
ontext_CopyProperties
(
existing
,
pCrlContext
);
Context_CopyProperties
(
existing
,
pCrlContext
);
if
(
ppStoreContext
)
*
ppStoreContext
=
CertDuplicateCRLContext
(
existing
);
}
...
...
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