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
e1364b02
Commit
e1364b02
authored
Nov 07, 2005
by
Stefan Huehner
Committed by
Alexandre Julliard
Nov 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix segfault when querying non-existent SecurityProvider.
parent
fc94be11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
secur32.c
dlls/secur32/secur32.c
+8
-3
No files found.
dlls/secur32/secur32.c
View file @
e1364b02
...
@@ -573,16 +573,21 @@ static void SECUR32_initializeProviders(void)
...
@@ -573,16 +573,21 @@ static void SECUR32_initializeProviders(void)
SecurePackage
*
SECUR32_findPackageW
(
PWSTR
packageName
)
SecurePackage
*
SECUR32_findPackageW
(
PWSTR
packageName
)
{
{
SecurePackage
*
ret
=
NULL
;
SecurePackage
*
ret
=
NULL
;
BOOL
matched
=
FALSE
;
if
(
packageTable
&&
packageName
)
if
(
packageTable
&&
packageName
)
{
{
LIST_FOR_EACH_ENTRY
(
ret
,
&
packageTable
->
table
,
SecurePackage
,
entry
)
LIST_FOR_EACH_ENTRY
(
ret
,
&
packageTable
->
table
,
SecurePackage
,
entry
)
{
{
if
(
!
lstrcmpiW
(
ret
->
infoW
.
Name
,
packageName
))
matched
=
!
lstrcmpiW
(
ret
->
infoW
.
Name
,
packageName
);
break
;
if
(
matched
)
break
;
}
}
if
(
ret
&&
ret
->
provider
&&
!
ret
->
provider
->
loaded
)
if
(
!
matched
)
return
NULL
;
if
(
ret
->
provider
&&
!
ret
->
provider
->
loaded
)
{
{
ret
->
provider
->
lib
=
LoadLibraryW
(
ret
->
provider
->
moduleName
);
ret
->
provider
->
lib
=
LoadLibraryW
(
ret
->
provider
->
moduleName
);
if
(
ret
->
provider
->
lib
)
if
(
ret
->
provider
->
lib
)
...
...
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