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
4b1e0de9
Commit
4b1e0de9
authored
Jul 23, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Release the request in WININET_GetProxyServer and WININET_SetProxyAuthorization.
parent
3eb5e861
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
10 deletions
+22
-10
dialogs.c
dlls/wininet/dialogs.c
+22
-10
No files found.
dlls/wininet/dialogs.c
View file @
4b1e0de9
...
...
@@ -65,19 +65,20 @@ static BOOL WININET_GetProxyServer( HINTERNET hRequest, LPWSTR szBuf, DWORD sz )
http_request_t
*
lpwhr
;
http_session_t
*
lpwhs
=
NULL
;
appinfo_t
*
hIC
=
NULL
;
BOOL
ret
=
FALSE
;
LPWSTR
p
;
lpwhr
=
(
http_request_t
*
)
WININET_GetObject
(
hRequest
);
if
(
NULL
==
lpwhr
)
return
FALSE
;
goto
done
;
lpwhs
=
lpwhr
->
lpHttpSession
;
if
(
NULL
==
lpwhs
)
return
FALSE
;
goto
done
;
hIC
=
lpwhs
->
lpAppInfo
;
if
(
NULL
==
hIC
)
return
FALSE
;
goto
done
;
lstrcpynW
(
szBuf
,
hIC
->
lpszProxy
,
sz
);
...
...
@@ -86,7 +87,11 @@ static BOOL WININET_GetProxyServer( HINTERNET hRequest, LPWSTR szBuf, DWORD sz )
if
(
p
)
*
p
=
0
;
return
TRUE
;
ret
=
TRUE
;
done:
WININET_Release
(
&
lpwhr
->
hdr
);
return
ret
;
}
/***********************************************************************
...
...
@@ -206,32 +211,39 @@ static BOOL WININET_SetProxyAuthorization( HINTERNET hRequest,
http_request_t
*
lpwhr
;
http_session_t
*
lpwhs
;
appinfo_t
*
hIC
;
BOOL
ret
=
FALSE
;
LPWSTR
p
;
lpwhr
=
(
http_request_t
*
)
WININET_GetObject
(
hRequest
);
if
(
!
lpwhr
)
return
FALSE
;
return
FALSE
;
lpwhs
=
lpwhr
->
lpHttpSession
;
if
(
NULL
==
lpwhs
||
lpwhs
->
hdr
.
htype
!=
WH_HHTTPSESSION
)
{
INTERNET_SetLastError
(
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
);
return
FALSE
;
goto
done
;
}
hIC
=
lpwhs
->
lpAppInfo
;
p
=
heap_strdupW
(
username
);
if
(
!
p
)
return
FALSE
;
goto
done
;
hIC
->
lpszProxyUsername
=
p
;
p
=
heap_strdupW
(
password
);
if
(
!
p
)
return
FALSE
;
goto
done
;
hIC
->
lpszProxyPassword
=
p
;
return
TRUE
;
ret
=
TRUE
;
done:
WININET_Release
(
&
lpwhr
->
hdr
);
return
ret
;
}
/***********************************************************************
...
...
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