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
e480b6d0
Commit
e480b6d0
authored
May 24, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
May 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Fix a possible NULL pointer deference.
parent
0076e33d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
dialogs.c
dlls/wininet/dialogs.c
+13
-10
No files found.
dlls/wininet/dialogs.c
View file @
e480b6d0
...
@@ -108,19 +108,22 @@ static BOOL WININET_GetAuthRealm( HINTERNET hRequest, LPWSTR szBuf, DWORD sz )
...
@@ -108,19 +108,22 @@ static BOOL WININET_GetAuthRealm( HINTERNET hRequest, LPWSTR szBuf, DWORD sz )
* dealing with 'Basic' Authentication
* dealing with 'Basic' Authentication
*/
*/
p
=
strchrW
(
szBuf
,
' '
);
p
=
strchrW
(
szBuf
,
' '
);
if
(
p
&&
!
strncmpW
(
p
+
1
,
szRealm
,
strlenW
(
szRealm
)
)
)
if
(
!
p
||
strncmpW
(
p
+
1
,
szRealm
,
strlenW
(
szRealm
)
)
)
{
{
/* remove quotes */
ERR
(
"proxy response wrong? (%s)
\n
"
,
debugstr_w
(
szBuf
));
p
+=
7
;
return
FALSE
;
if
(
*
p
==
'"'
)
{
p
++
;
q
=
strrchrW
(
p
,
'"'
);
if
(
q
)
*
q
=
0
;
}
}
}
/* remove quotes */
p
+=
7
;
if
(
*
p
==
'"'
)
{
p
++
;
q
=
strrchrW
(
p
,
'"'
);
if
(
q
)
*
q
=
0
;
}
strcpyW
(
szBuf
,
p
);
strcpyW
(
szBuf
,
p
);
return
TRUE
;
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