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
94b6a885
Commit
94b6a885
authored
Jul 06, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Use regular list iterator when there's no need for safe one.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c5b6e314
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
collectionstore.c
dlls/crypt32/collectionstore.c
+4
-5
proplist.c
dlls/crypt32/proplist.c
+2
-3
No files found.
dlls/crypt32/collectionstore.c
View file @
94b6a885
...
...
@@ -114,10 +114,10 @@ static BOOL CRYPT_CollectionAddContext(WINE_COLLECTIONSTORE *store,
}
else
{
WINE_STORE_LIST_ENTRY
*
entry
,
*
next
;
WINE_STORE_LIST_ENTRY
*
entry
;
EnterCriticalSection
(
&
store
->
cs
);
LIST_FOR_EACH_ENTRY
_SAFE
(
entry
,
next
,
&
store
->
stores
,
WINE_STORE_LIST_ENTRY
,
entry
)
LIST_FOR_EACH_ENTRY
(
entry
,
&
store
->
stores
,
WINE_STORE_LIST_ENTRY
,
entry
)
{
if
(
entry
->
dwUpdateFlags
&
CERT_PHYSICAL_STORE_ADD_ENABLE_FLAG
)
{
...
...
@@ -559,7 +559,7 @@ void WINAPI CertRemoveStoreFromCollection(HCERTSTORE hCollectionStore,
{
WINE_COLLECTIONSTORE
*
collection
=
hCollectionStore
;
WINECRYPT_CERTSTORE
*
sibling
=
hSiblingStore
;
WINE_STORE_LIST_ENTRY
*
store
,
*
next
;
WINE_STORE_LIST_ENTRY
*
store
;
TRACE
(
"(%p, %p)
\n
"
,
hCollectionStore
,
hSiblingStore
);
...
...
@@ -578,8 +578,7 @@ void WINAPI CertRemoveStoreFromCollection(HCERTSTORE hCollectionStore,
return
;
}
EnterCriticalSection
(
&
collection
->
cs
);
LIST_FOR_EACH_ENTRY_SAFE
(
store
,
next
,
&
collection
->
stores
,
WINE_STORE_LIST_ENTRY
,
entry
)
LIST_FOR_EACH_ENTRY
(
store
,
&
collection
->
stores
,
WINE_STORE_LIST_ENTRY
,
entry
)
{
if
(
store
->
store
==
sibling
)
{
...
...
dlls/crypt32/proplist.c
View file @
94b6a885
...
...
@@ -148,11 +148,10 @@ BOOL ContextPropertyList_SetProperty(CONTEXT_PROPERTY_LIST *list, DWORD id,
void
ContextPropertyList_RemoveProperty
(
CONTEXT_PROPERTY_LIST
*
list
,
DWORD
id
)
{
CONTEXT_PROPERTY
*
prop
,
*
next
;
CONTEXT_PROPERTY
*
prop
;
EnterCriticalSection
(
&
list
->
cs
);
LIST_FOR_EACH_ENTRY_SAFE
(
prop
,
next
,
&
list
->
properties
,
CONTEXT_PROPERTY
,
entry
)
LIST_FOR_EACH_ENTRY
(
prop
,
&
list
->
properties
,
CONTEXT_PROPERTY
,
entry
)
{
if
(
prop
->
propID
==
id
)
{
...
...
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