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
a16ca1d0
Commit
a16ca1d0
authored
Nov 04, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Nov 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Add a warning if a store's ref count is invalid.
parent
88e599c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
store.c
dlls/crypt32/store.c
+2
-0
No files found.
dlls/crypt32/store.c
View file @
a16ca1d0
...
@@ -1175,6 +1175,8 @@ BOOL WINAPI CertCloseStore(HCERTSTORE hCertStore, DWORD dwFlags)
...
@@ -1175,6 +1175,8 @@ BOOL WINAPI CertCloseStore(HCERTSTORE hCertStore, DWORD dwFlags)
if
(
hcs
->
dwMagic
!=
WINE_CRYPTCERTSTORE_MAGIC
)
if
(
hcs
->
dwMagic
!=
WINE_CRYPTCERTSTORE_MAGIC
)
return
FALSE
;
return
FALSE
;
if
(
hcs
->
ref
<=
0
)
ERR
(
"%p's ref count is %d
\n
"
,
hcs
,
hcs
->
ref
);
if
(
InterlockedDecrement
(
&
hcs
->
ref
)
==
0
)
if
(
InterlockedDecrement
(
&
hcs
->
ref
)
==
0
)
{
{
TRACE
(
"%p's ref count is 0, freeing
\n
"
,
hcs
);
TRACE
(
"%p's ref count is 0, freeing
\n
"
,
hcs
);
...
...
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