mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
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.
|
||||
*/
|
||||
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);
|
||||
ret = ReportEvent(handle, 0x20, 0, 0, NULL, 0, 0, NULL, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user