Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
9373f330
Commit
9373f330
authored
Oct 11, 2023
by
Daniel Lehman
Committed by
Alexandre Julliard
Oct 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Skip ReadEventLog on failure to open System log.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55731
parent
51e4ec30
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
eventlog.c
dlls/advapi32/tests/eventlog.c
+10
-4
No files found.
dlls/advapi32/tests/eventlog.c
View file @
9373f330
...
...
@@ -1327,11 +1327,13 @@ static void test_eventlog_start(void)
char
*
sourcenameA
,
*
computernameA
,
*
localcomputerA
;
/* ReadEventLogW */
size
=
MAX_COMPUTERNAME_LENGTH
+
1
;
localcomputer
=
malloc
(
size
*
sizeof
(
WCHAR
));
GetComputerNameW
(
localcomputer
,
&
size
);
handle
=
OpenEventLogW
(
0
,
L"System"
);
if
(
!
handle
&&
(
GetLastError
()
==
ERROR_ACCESS_DENIED
||
GetLastError
()
==
RPC_S_SERVER_UNAVAILABLE
))
{
win_skip
(
"Can't open event log
\n
"
);
return
;
}
ok
(
handle
!=
NULL
,
"OpenEventLogW(System) failed : %ld
\n
"
,
GetLastError
());
handle2
=
OpenEventLogW
(
0
,
L"System"
);
todo_wine
ok
(
handle
!=
handle2
,
"Expected different handle
\n
"
);
CloseEventLog
(
handle2
);
...
...
@@ -1340,6 +1342,10 @@ static void test_eventlog_start(void)
ok
(
!!
handle2
,
"Expected valid handle
\n
"
);
CloseEventLog
(
handle2
);
size
=
MAX_COMPUTERNAME_LENGTH
+
1
;
localcomputer
=
malloc
(
size
*
sizeof
(
WCHAR
));
GetComputerNameW
(
localcomputer
,
&
size
);
ret
=
TRUE
;
found
=
FALSE
;
while
(
!
found
&&
ret
)
...
...
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