Commit fecc5f21 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

Fix protocol test.

parent 264a3365
......@@ -318,6 +318,7 @@ static void test_file_protocol_url(LPCWSTR url)
static void test_file_protocol(void) {
IInternetProtocol *protocol;
WCHAR buf[MAX_PATH];
DWORD size;
ULONG len;
HANDLE file;
HRESULT hres;
......@@ -332,10 +333,10 @@ static void test_file_protocol(void) {
file = CreateFileW(wszIndexHtml, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS,
FILE_ATTRIBUTE_NORMAL, NULL);
ok(file != NULL, "CreateFile failed\n");
if(!file)
ok(file != INVALID_HANDLE_VALUE, "CreateFile failed\n");
if(file == INVALID_HANDLE_VALUE)
return;
WriteFile(file, html_doc, sizeof(html_doc)-1, NULL, NULL);
WriteFile(file, html_doc, sizeof(html_doc)-1, &size, NULL);
CloseHandle(file);
file_name = wszIndexHtml;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment