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
6d238a6f
Commit
6d238a6f
authored
Mar 30, 2009
by
Ge van Geldorp
Committed by
Alexandre Julliard
Mar 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Fix ftp protocol test on WinXP and higher.
parent
5d08f3b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
protocol.c
dlls/urlmon/tests/protocol.c
+7
-8
No files found.
dlls/urlmon/tests/protocol.c
View file @
6d238a6f
...
...
@@ -352,7 +352,10 @@ static HRESULT WINAPI ProtocolSink_Switch(IInternetProtocolSink *iface, PROTOCOL
{
HRESULT
hres
;
CHECK_EXPECT
(
Switch
);
if
(
tested_protocol
==
FTP_TEST
)
CHECK_EXPECT2
(
Switch
);
else
CHECK_EXPECT
(
Switch
);
ok
(
pProtocolData
!=
NULL
,
"pProtocolData == NULL
\n
"
);
pdata
=
pProtocolData
;
...
...
@@ -1835,23 +1838,19 @@ static void test_ftp_protocol(void)
(
hres
==
S_OK
&&
cb
==
1
),
"Read failed: %08x (%d bytes)
\n
"
,
hres
,
cb
);
WaitForSingleObject
(
event_complete
,
INFINITE
);
CHECK_CALLED
(
Switch
);
while
(
1
)
{
SET_EXPECT
(
Switch
);
hres
=
IInternetProtocol_Read
(
async_protocol
,
buf
,
sizeof
(
buf
),
&
cb
);
if
(
hres
==
E_PENDING
)
{
if
(
hres
==
E_PENDING
)
WaitForSingleObject
(
event_complete
,
INFINITE
);
CHECK_CALLED
(
Switch
);
}
else
{
CHECK_NOT_CALLED
(
Switch
);
else
if
(
cb
==
0
)
break
;
}
}
ok
(
hres
==
S_FALSE
,
"Read failed: %08x
\n
"
,
hres
);
CHECK_CALLED
(
ReportResult
);
CHECK_CALLED
(
Switch
);
test_protocol_terminate
(
async_protocol
);
...
...
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