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
f3128c92
Commit
f3128c92
authored
Aug 16, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Aug 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Where possible, pass a pointer rather than an offset, it's less confusing.
parent
2a8aa878
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
store.c
dlls/crypt32/store.c
+18
-11
No files found.
dlls/crypt32/store.c
View file @
f3128c92
...
...
@@ -477,13 +477,11 @@ static BOOL CRYPT_CollectionAddContext(PWINE_COLLECTIONSTORE store,
* Assumes the collection store's lock is held.
*/
static
void
*
CRYPT_CollectionAdvanceEnum
(
PWINE_COLLECTIONSTORE
store
,
PWINE_STORE_LIST_ENTRY
storeEntry
,
size_t
contextFuncsOffset
,
PWINE_STORE_LIST_ENTRY
storeEntry
,
PCONTEXT_FUNCS
contextFuncs
,
PCWINE_CONTEXT_INTERFACE
contextInterface
,
void
*
pPrev
,
size_t
contextSize
)
{
void
*
ret
,
*
child
;
struct
list
*
storeNext
=
list_next
(
&
store
->
stores
,
&
storeEntry
->
entry
);
PCONTEXT_FUNCS
contextFuncs
=
(
PCONTEXT_FUNCS
)((
LPBYTE
)
storeEntry
->
store
+
contextFuncsOffset
);
TRACE
(
"(%p, %p, %p)
\n
"
,
store
,
storeEntry
,
pPrev
);
...
...
@@ -506,9 +504,19 @@ static void *CRYPT_CollectionAdvanceEnum(PWINE_COLLECTIONSTORE store,
else
{
if
(
storeNext
)
ret
=
CRYPT_CollectionAdvanceEnum
(
store
,
LIST_ENTRY
(
storeNext
,
WINE_STORE_LIST_ENTRY
,
entry
),
contextFuncsOffset
,
contextInterface
,
NULL
,
contextSize
);
{
/* We always want the same function pointers (from certs, crls)
* in the next store, so use the same offset into the next store.
*/
size_t
offset
=
(
LPBYTE
)
contextFuncs
-
(
LPBYTE
)
storeEntry
->
store
;
PWINE_STORE_LIST_ENTRY
storeNextEntry
=
LIST_ENTRY
(
storeNext
,
WINE_STORE_LIST_ENTRY
,
entry
);
PCONTEXT_FUNCS
storeNextContexts
=
(
PCONTEXT_FUNCS
)((
LPBYTE
)
storeNextEntry
->
store
+
offset
);
ret
=
CRYPT_CollectionAdvanceEnum
(
store
,
storeNextEntry
,
storeNextContexts
,
contextInterface
,
NULL
,
contextSize
);
}
else
{
SetLastError
(
CRYPT_E_NOT_FOUND
);
...
...
@@ -559,7 +567,7 @@ static void *CRYPT_CollectionEnumCert(PWINECRYPT_CERTSTORE store, void *pPrev)
sizeof
(
CERT_CONTEXT
));
ret
=
CRYPT_CollectionAdvanceEnum
(
cs
,
storeEntry
,
offsetof
(
WINECRYPT_CERTSTORE
,
certs
)
,
pCertInterface
,
pPrev
,
&
storeEntry
->
store
->
certs
,
pCertInterface
,
pPrev
,
sizeof
(
CERT_CONTEXT
));
}
else
...
...
@@ -570,7 +578,7 @@ static void *CRYPT_CollectionEnumCert(PWINECRYPT_CERTSTORE store, void *pPrev)
WINE_STORE_LIST_ENTRY
,
entry
);
ret
=
CRYPT_CollectionAdvanceEnum
(
cs
,
storeEntry
,
offsetof
(
WINECRYPT_CERTSTORE
,
certs
)
,
pCertInterface
,
NULL
,
&
storeEntry
->
store
->
certs
,
pCertInterface
,
NULL
,
sizeof
(
CERT_CONTEXT
));
}
else
...
...
@@ -638,8 +646,7 @@ static void *CRYPT_CollectionEnumCRL(PWINECRYPT_CERTSTORE store, void *pPrev)
sizeof
(
CRL_CONTEXT
));
ret
=
CRYPT_CollectionAdvanceEnum
(
cs
,
storeEntry
,
offsetof
(
WINECRYPT_CERTSTORE
,
crls
),
pCRLInterface
,
pPrev
,
sizeof
(
CRL_CONTEXT
));
&
storeEntry
->
store
->
crls
,
pCRLInterface
,
pPrev
,
sizeof
(
CRL_CONTEXT
));
}
else
{
...
...
@@ -649,7 +656,7 @@ static void *CRYPT_CollectionEnumCRL(PWINECRYPT_CERTSTORE store, void *pPrev)
WINE_STORE_LIST_ENTRY
,
entry
);
ret
=
CRYPT_CollectionAdvanceEnum
(
cs
,
storeEntry
,
offsetof
(
WINECRYPT_CERTSTORE
,
crls
)
,
pCRLInterface
,
NULL
,
&
storeEntry
->
store
->
crls
,
pCRLInterface
,
NULL
,
sizeof
(
CRL_CONTEXT
));
}
else
...
...
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