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
8ebf950b
Commit
8ebf950b
authored
Jun 03, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Avoid accessing an uninitialized variable (valgrind).
parent
e21c5282
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
sec_mgr.c
dlls/urlmon/sec_mgr.c
+14
-8
No files found.
dlls/urlmon/sec_mgr.c
View file @
8ebf950b
...
...
@@ -256,18 +256,24 @@ static BOOL get_zone_for_scheme(HKEY key, LPCWSTR schema, DWORD *zone)
/* See if the key contains a value for the scheme first. */
res
=
RegQueryValueExW
(
key
,
schema
,
NULL
,
&
type
,
(
BYTE
*
)
zone
,
&
size
);
if
(
type
!=
REG_DWORD
)
if
(
res
==
ERROR_SUCCESS
)
{
if
(
type
==
REG_DWORD
)
return
TRUE
;
WARN
(
"Unexpected value type %d for value %s, expected REG_DWORD
\n
"
,
type
,
debugstr_w
(
schema
));
}
/* Try to get the zone for the wildcard scheme. */
size
=
sizeof
(
DWORD
);
res
=
RegQueryValueExW
(
key
,
wildcardW
,
NULL
,
&
type
,
(
BYTE
*
)
zone
,
&
size
);
if
(
res
!=
ERROR_SUCCESS
)
return
FALSE
;
if
(
res
!=
ERROR_SUCCESS
||
type
!=
REG_DWORD
)
{
/* Try to get the zone for the wildcard scheme. */
size
=
sizeof
(
DWORD
);
res
=
RegQueryValueExW
(
key
,
wildcardW
,
NULL
,
&
type
,
(
BYTE
*
)
zone
,
&
size
);
if
(
type
!=
REG_DWORD
)
WARN
(
"Unexpected value type %d for value %s, expected REG_DWORD
\n
"
,
type
,
debugstr_w
(
wildcardW
));
if
(
type
!=
REG_DWORD
)
{
WARN
(
"Unexpected value type %d for value %s, expected REG_DWORD
\n
"
,
type
,
debugstr_w
(
wildcardW
));
return
FALSE
;
}
return
res
==
ERROR_SUCCESS
&&
type
==
REG_DWORD
;
return
TRUE
;
}
/********************************************************************
...
...
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