mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
advapi32/tests: Fix an intermittent crash on NT4.
This commit is contained in:
parent
92cd5a5c6b
commit
91648ff4be
1 changed files with 7 additions and 0 deletions
|
@ -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 a new issue