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
864db966
Commit
864db966
authored
Nov 11, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Fix two handle leaks in the test.
parent
42aa4e46
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
http.c
dlls/wininet/tests/http.c
+4
-1
No files found.
dlls/wininet/tests/http.c
View file @
864db966
...
@@ -753,7 +753,7 @@ static void InternetOpenUrlA_test(void)
...
@@ -753,7 +753,7 @@ static void InternetOpenUrlA_test(void)
SetLastError
(
0
);
SetLastError
(
0
);
myhttp
=
InternetOpenUrl
(
myhinternet
,
TEST_URL
,
0
,
0
,
myhttp
=
InternetOpenUrl
(
myhinternet
,
TEST_URL
,
0
,
0
,
INTERNET_FLAG_RELOAD
|
INTERNET_FLAG_NO_CACHE_WRITE
|
INTERNET_FLAG_TRANSFER_BINARY
,
0
);
INTERNET_FLAG_RELOAD
|
INTERNET_FLAG_NO_CACHE_WRITE
|
INTERNET_FLAG_TRANSFER_BINARY
,
0
);
if
(
GetLastError
()
==
12007
)
if
(
GetLastError
()
==
ERROR_INTERNET_NAME_NOT_RESOLVED
)
return
;
/* WinXP returns this when not connected to the net */
return
;
/* WinXP returns this when not connected to the net */
ok
((
myhttp
!=
0
),
"InternetOpenUrl failed, error %u
\n
"
,
GetLastError
());
ok
((
myhttp
!=
0
),
"InternetOpenUrl failed, error %u
\n
"
,
GetLastError
());
ret
=
InternetReadFile
(
myhttp
,
buffer
,
0x400
,
&
readbytes
);
ret
=
InternetReadFile
(
myhttp
,
buffer
,
0x400
,
&
readbytes
);
...
@@ -762,6 +762,9 @@ static void InternetOpenUrlA_test(void)
...
@@ -762,6 +762,9 @@ static void InternetOpenUrlA_test(void)
while
(
readbytes
&&
InternetReadFile
(
myhttp
,
buffer
,
0x400
,
&
readbytes
))
while
(
readbytes
&&
InternetReadFile
(
myhttp
,
buffer
,
0x400
,
&
readbytes
))
totalbytes
+=
readbytes
;
totalbytes
+=
readbytes
;
trace
(
"read 0x%08x bytes
\n
"
,
totalbytes
);
trace
(
"read 0x%08x bytes
\n
"
,
totalbytes
);
InternetCloseHandle
(
myhttp
);
InternetCloseHandle
(
myhinternet
);
}
}
static
void
InternetTimeFromSystemTimeA_test
(
void
)
static
void
InternetTimeFromSystemTimeA_test
(
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