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
7b94871c
Commit
7b94871c
authored
May 26, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
May 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Pass context to InitializeSecurityContext in second parameter.
Otherwise, the call will now fail with SEC_E_INVALID_HANDLE.
parent
34556854
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
http.c
dlls/wininet/http.c
+4
-1
No files found.
dlls/wininet/http.c
View file @
7b94871c
...
...
@@ -426,6 +426,7 @@ static BOOL HTTP_DoAuthorization( LPWININETHTTPREQW lpwhr, LPCWSTR pszAuthValue
struct
HttpAuthInfo
*
pAuthInfo
=
lpwhr
->
pAuthInfo
;
LPWSTR
password
=
lpwhr
->
lpHttpSession
->
lpszPassword
;
LPWSTR
domain_and_username
=
lpwhr
->
lpHttpSession
->
lpszUserName
;
BOOL
first
=
FALSE
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
pszAuthValue
));
...
...
@@ -435,6 +436,7 @@ static BOOL HTTP_DoAuthorization( LPWININETHTTPREQW lpwhr, LPCWSTR pszAuthValue
{
TimeStamp
exp
;
first
=
TRUE
;
pAuthInfo
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
pAuthInfo
));
if
(
!
pAuthInfo
)
return
FALSE
;
...
...
@@ -561,7 +563,8 @@ static BOOL HTTP_DoAuthorization( LPWININETHTTPREQW lpwhr, LPCWSTR pszAuthValue
out_desc
.
cBuffers
=
1
;
out_desc
.
pBuffers
=
&
out
;
sec_status
=
InitializeSecurityContextW
(
&
pAuthInfo
->
cred
,
NULL
,
NULL
,
sec_status
=
InitializeSecurityContextW
(
first
?
&
pAuthInfo
->
cred
:
NULL
,
first
?
NULL
:
&
pAuthInfo
->
ctx
,
NULL
,
context_req
,
0
,
SECURITY_NETWORK_DREP
,
in
.
pvBuffer
?
&
in_desc
:
NULL
,
0
,
&
pAuthInfo
->
ctx
,
&
out_desc
,
...
...
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