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
50761eac
Commit
50761eac
authored
Jul 23, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Use a different pointer for the password in WININET_SetAuthorization.
parent
2b18ed11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
dialogs.c
dlls/wininet/dialogs.c
+5
-5
No files found.
dlls/wininet/dialogs.c
View file @
50761eac
...
@@ -242,7 +242,7 @@ static BOOL WININET_SetAuthorization( HINTERNET hRequest, LPWSTR username,
...
@@ -242,7 +242,7 @@ static BOOL WININET_SetAuthorization( HINTERNET hRequest, LPWSTR username,
http_request_t
*
lpwhr
;
http_request_t
*
lpwhr
;
http_session_t
*
lpwhs
;
http_session_t
*
lpwhs
;
BOOL
ret
=
FALSE
;
BOOL
ret
=
FALSE
;
LPWSTR
p
;
LPWSTR
p
,
q
;
lpwhr
=
(
http_request_t
*
)
WININET_GetObject
(
hRequest
);
lpwhr
=
(
http_request_t
*
)
WININET_GetObject
(
hRequest
);
if
(
!
lpwhr
)
if
(
!
lpwhr
)
...
@@ -259,8 +259,8 @@ static BOOL WININET_SetAuthorization( HINTERNET hRequest, LPWSTR username,
...
@@ -259,8 +259,8 @@ static BOOL WININET_SetAuthorization( HINTERNET hRequest, LPWSTR username,
if
(
!
p
)
if
(
!
p
)
goto
done
;
goto
done
;
p
=
heap_strdupW
(
password
);
q
=
heap_strdupW
(
password
);
if
(
!
p
)
if
(
!
q
)
{
{
HeapFree
(
GetProcessHeap
(),
0
,
username
);
HeapFree
(
GetProcessHeap
(),
0
,
username
);
goto
done
;
goto
done
;
...
@@ -274,7 +274,7 @@ static BOOL WININET_SetAuthorization( HINTERNET hRequest, LPWSTR username,
...
@@ -274,7 +274,7 @@ static BOOL WININET_SetAuthorization( HINTERNET hRequest, LPWSTR username,
hIC
->
lpszProxyUsername
=
p
;
hIC
->
lpszProxyUsername
=
p
;
HeapFree
(
GetProcessHeap
(),
0
,
hIC
->
lpszProxyPassword
);
HeapFree
(
GetProcessHeap
(),
0
,
hIC
->
lpszProxyPassword
);
hIC
->
lpszProxyPassword
=
p
;
hIC
->
lpszProxyPassword
=
q
;
}
}
else
else
{
{
...
@@ -282,7 +282,7 @@ static BOOL WININET_SetAuthorization( HINTERNET hRequest, LPWSTR username,
...
@@ -282,7 +282,7 @@ static BOOL WININET_SetAuthorization( HINTERNET hRequest, LPWSTR username,
lpwhs
->
lpszUserName
=
p
;
lpwhs
->
lpszUserName
=
p
;
HeapFree
(
GetProcessHeap
(),
0
,
lpwhs
->
lpszPassword
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhs
->
lpszPassword
);
lpwhs
->
lpszPassword
=
p
;
lpwhs
->
lpszPassword
=
q
;
}
}
ret
=
TRUE
;
ret
=
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