advapi32/tests: Fix an intermittent crash on NT4.
This commit is contained in:
parent
92cd5a5c6b
commit
91648ff4be
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue