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
4af8e5f2
Commit
4af8e5f2
authored
Oct 27, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Add a input parameter check (CloseEventLog).
parent
6bdbf6ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
eventlog.c
dlls/advapi32/eventlog.c
+9
-2
eventlog.c
dlls/advapi32/tests/eventlog.c
+0
-3
No files found.
dlls/advapi32/eventlog.c
View file @
4af8e5f2
...
...
@@ -125,8 +125,15 @@ BOOL WINAPI ClearEventLogW( HANDLE hEventLog, LPCWSTR lpBackupFileName )
*/
BOOL
WINAPI
CloseEventLog
(
HANDLE
hEventLog
)
{
FIXME
(
"(%p) stub
\n
"
,
hEventLog
);
return
TRUE
;
FIXME
(
"(%p) stub
\n
"
,
hEventLog
);
if
(
!
hEventLog
)
{
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
return
TRUE
;
}
/******************************************************************************
...
...
dlls/advapi32/tests/eventlog.c
View file @
4af8e5f2
...
...
@@ -34,13 +34,10 @@ static void test_open_close(void)
SetLastError
(
0xdeadbeef
);
ret
=
CloseEventLog
(
NULL
);
todo_wine
{
ok
(
!
ret
,
"Expected failure
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
||
GetLastError
()
==
ERROR_NOACCESS
,
/* W2K */
"Expected ERROR_INVALID_HANDLE, got %d
\n
"
,
GetLastError
());
}
SetLastError
(
0xdeadbeef
);
handle
=
OpenEventLogA
(
NULL
,
NULL
);
...
...
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