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
968ad51d
Commit
968ad51d
authored
May 01, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Missing LeaveCriticalSection on error paths.
parent
3e46363b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
secur32.c
dlls/secur32/secur32.c
+9
-0
No files found.
dlls/secur32/secur32.c
View file @
968ad51d
...
@@ -396,14 +396,20 @@ SecureProvider *SECUR32_addProvider(const SecurityFunctionTableA *fnTableA,
...
@@ -396,14 +396,20 @@ SecureProvider *SECUR32_addProvider(const SecurityFunctionTableA *fnTableA,
{
{
providerTable
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
SecureProviderTable
));
providerTable
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
SecureProviderTable
));
if
(
!
providerTable
)
if
(
!
providerTable
)
{
LeaveCriticalSection
(
&
cs
);
return
NULL
;
return
NULL
;
}
list_init
(
&
providerTable
->
table
);
list_init
(
&
providerTable
->
table
);
}
}
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
SecureProvider
));
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
SecureProvider
));
if
(
!
ret
)
if
(
!
ret
)
{
LeaveCriticalSection
(
&
cs
);
return
NULL
;
return
NULL
;
}
list_add_tail
(
&
providerTable
->
table
,
&
ret
->
entry
);
list_add_tail
(
&
providerTable
->
table
,
&
ret
->
entry
);
ret
->
lib
=
NULL
;
ret
->
lib
=
NULL
;
...
@@ -439,7 +445,10 @@ void SECUR32_addPackages(SecureProvider *provider, ULONG toAdd,
...
@@ -439,7 +445,10 @@ void SECUR32_addPackages(SecureProvider *provider, ULONG toAdd,
{
{
packageTable
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
SecurePackageTable
));
packageTable
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
SecurePackageTable
));
if
(
!
packageTable
)
if
(
!
packageTable
)
{
LeaveCriticalSection
(
&
cs
);
return
;
return
;
}
packageTable
->
numPackages
=
0
;
packageTable
->
numPackages
=
0
;
list_init
(
&
packageTable
->
table
);
list_init
(
&
packageTable
->
table
);
...
...
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