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
ec1ae3b6
Commit
ec1ae3b6
authored
Dec 21, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp/tests: Make sure proxy settings are restored.
parent
6e38d5be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
winhttp.c
dlls/winhttp/tests/winhttp.c
+6
-6
No files found.
dlls/winhttp/tests/winhttp.c
View file @
ec1ae3b6
...
...
@@ -1070,6 +1070,9 @@ static void test_set_default_proxy_config(void)
info
.
lpszProxy
=
wideString
;
SetLastError
(
0xdeadbeef
);
ret
=
WinHttpSetDefaultProxyConfiguration
(
&
info
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_ACCESS_DENIED
)
skip
(
"couldn't set default proxy configuration: access denied
\n
"
);
else
ok
((
!
ret
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
)
||
broken
(
ret
),
/* Earlier winhttp versions on W2K/XP */
"expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
...
...
@@ -1077,16 +1080,13 @@ static void test_set_default_proxy_config(void)
info
.
lpszProxy
=
normalString
;
SetLastError
(
0xdeadbeef
);
ret
=
WinHttpSetDefaultProxyConfiguration
(
&
info
);
if
(
ret
)
{
ok
(
ret
,
"always true
\n
"
);
set_default_proxy_reg_value
(
saved_proxy_settings
,
len
,
type
);
}
else
if
(
GetLastError
()
==
ERROR_ACCESS_DENIED
)
if
(
!
ret
&&
GetLastError
()
==
ERROR_ACCESS_DENIED
)
skip
(
"couldn't set default proxy configuration: access denied
\n
"
);
else
ok
(
ret
,
"WinHttpSetDefaultProxyConfiguration failed: %d
\n
"
,
GetLastError
());
set_default_proxy_reg_value
(
saved_proxy_settings
,
len
,
type
);
}
static
void
test_Timeouts
(
void
)
...
...
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