Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
da92afa3
Commit
da92afa3
authored
Nov 24, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Nov 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Fix a test failure on W2K3 without a service pack.
parent
91648ff4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
eventlog.c
dlls/advapi32/tests/eventlog.c
+21
-0
No files found.
dlls/advapi32/tests/eventlog.c
View file @
da92afa3
...
...
@@ -741,6 +741,27 @@ static void test_readwrite(void)
return
;
}
count
=
0xdeadbeef
;
GetNumberOfEventLogRecords
(
handle
,
&
count
);
if
(
count
!=
0
)
{
/* Needed for W2K3 without a service pack */
win_skip
(
"We most likely opened the Application eventlog
\n
"
);
CloseEventLog
(
handle
);
Sleep
(
2000
);
handle
=
OpenEventLogA
(
NULL
,
eventlogname
);
count
=
0xdeadbeef
;
GetNumberOfEventLogRecords
(
handle
,
&
count
);
if
(
count
!=
0
)
{
win_skip
(
"We didn't open our new eventlog
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
user
);
CloseEventLog
(
handle
);
return
;
}
}
SetLastError
(
0xdeadbeef
);
ret
=
ReportEvent
(
handle
,
0x20
,
0
,
0
,
NULL
,
0
,
0
,
NULL
,
NULL
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_CRC
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment