From 9f31fb2fd466ed0098f34c6558283023cf5fdd86 Mon Sep 17 00:00:00 2001 From: Misha Koshelev Date: Fri, 27 Jul 2007 00:39:17 -0500 Subject: [PATCH] urlmon/tests: Rename received_data event to more general name event_complete. --- dlls/urlmon/tests/protocol.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/urlmon/tests/protocol.c b/dlls/urlmon/tests/protocol.c index 45ba8410c81..2b79cdd6ff2 100644 --- a/dlls/urlmon/tests/protocol.c +++ b/dlls/urlmon/tests/protocol.c @@ -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(); }