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
9f31fb2f
Commit
9f31fb2f
authored
Jul 27, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Jul 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Rename received_data event to more general name event_complete.
parent
c43875ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
protocol.c
dlls/urlmon/tests/protocol.c
+6
-6
No files found.
dlls/urlmon/tests/protocol.c
View file @
9f31fb2f
...
...
@@ -104,7 +104,7 @@ static int state = 0;
static
DWORD
bindf
=
0
;
static
IInternetBindInfo
*
prot_bind_info
;
static
void
*
expect_pv
;
static
HANDLE
received_data
;
static
HANDLE
event_complete
;
static
enum
{
FILE_TEST
,
...
...
@@ -419,7 +419,7 @@ static HRESULT WINAPI ProtocolSink_ReportData(IInternetProtocolSink *iface, DWOR
}
if
(
!
(
bindf
&
BINDF_FROMURLMON
))
SetEvent
(
received_data
);
SetEvent
(
event_complete
);
}
return
S_OK
;
}
...
...
@@ -1250,7 +1250,7 @@ static void test_http_protocol_url(LPCWSTR url, BOOL is_first)
}
else
{
WaitForSingleObject
(
received_data
,
INFINITE
);
WaitForSingleObject
(
event_complete
,
INFINITE
);
SendMessage
(
protocol_hwnd
,
WM_USER
,
0
,
0
);
}
...
...
@@ -1299,7 +1299,7 @@ static HRESULT http_protocol_read(void)
hres
=
IInternetProtocol_Read
(
http_protocol
,
buf
,
sizeof
(
buf
),
&
cb
);
if
(
!
(
bindf
&
BINDF_FROMURLMON
)
&&
hres
==
E_PENDING
)
{
WaitForSingleObject
(
received_data
,
INFINITE
);
WaitForSingleObject
(
event_complete
,
INFINITE
);
CHECK_CALLED
(
ReportData
);
SET_EXPECT
(
ReportData
);
}
else
if
(
cb
==
0
)
break
;
...
...
@@ -1554,7 +1554,7 @@ START_TEST(protocol)
{
OleInitialize
(
NULL
);
received_data
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
event_complete
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
protocol_hwnd
=
create_protocol_window
();
test_file_protocol
();
...
...
@@ -1563,7 +1563,7 @@ START_TEST(protocol)
test_CreateBinding
();
DestroyWindow
(
protocol_hwnd
);
CloseHandle
(
received_data
);
CloseHandle
(
event_complete
);
OleUninitialize
();
}
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