Commit 91648ff4 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

advapi32/tests: Fix an intermittent crash on NT4.

parent 92cd5a5c
...@@ -733,6 +733,13 @@ static void test_readwrite(void) ...@@ -733,6 +733,13 @@ static void test_readwrite(void)
* but succeed on all others, hence it's not part of the struct. * but succeed on all others, hence it's not part of the struct.
*/ */
handle = OpenEventLogA(NULL, eventlogname); handle = OpenEventLogA(NULL, eventlogname);
if (!handle)
{
/* Intermittently seen on NT4 when tests are run immediately after boot */
win_skip("Could not get a handle to the eventlog\n");
HeapFree(GetProcessHeap(), 0, user);
return;
}
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = ReportEvent(handle, 0x20, 0, 0, NULL, 0, 0, NULL, NULL); ret = ReportEvent(handle, 0x20, 0, 0, NULL, 0, 0, NULL, NULL);
......
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