Commit 0e44c658 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

advapi32/tests: Don't check the content of the buffer if ReadEventLog() fails.

parent b34ec645
......@@ -996,7 +996,11 @@ static void test_readwrite(void)
ret = ReadEventLogA(handle, EVENTLOG_SEQUENTIAL_READ | EVENTLOG_FORWARDS_READ,
0, buf, needed, &read, &needed);
ok(ret, "Expected success: %ld\n", GetLastError());
if (!ret)
{
winetest_pop_context();
break;
}
record = (EVENTLOGRECORD *)buf;
ok(record->Length == read,
......
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