This repository has been archived by the owner on Oct 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added patch to implement stub for wevtapi.EvtNext.
- Loading branch information
Showing
3 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
patches/wevtapi-EvtNext/0001-wevtapi-Add-stub-for-EvtNext.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
From 31dab1225f9a417df6237c0f33a57128645af4d7 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de> | ||
Date: Thu, 2 Feb 2017 20:06:04 +0100 | ||
Subject: wevtapi: Add stub for EvtNext. | ||
|
||
--- | ||
dlls/wevtapi/main.c | 16 ++++++++++++++++ | ||
dlls/wevtapi/wevtapi.spec | 2 +- | ||
2 files changed, 17 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/dlls/wevtapi/main.c b/dlls/wevtapi/main.c | ||
index 0b88165abae..f0a8f729f24 100644 | ||
--- a/dlls/wevtapi/main.c | ||
+++ b/dlls/wevtapi/main.c | ||
@@ -80,6 +80,22 @@ EVT_HANDLE WINAPI EvtOpenChannelConfig(EVT_HANDLE Session, LPCWSTR ChannelPath, | ||
return NULL; | ||
} | ||
|
||
+BOOL WINAPI EvtNext(EVT_HANDLE result, DWORD size, EVT_HANDLE *array, DWORD timeout, | ||
+ DWORD flags, DWORD *ret_count) | ||
+{ | ||
+ FIXME("(%p %u %p %u %u %p) stub\n", result, size, array, timeout, flags, ret_count); | ||
+ | ||
+ if (timeout) | ||
+ { | ||
+ Sleep(timeout); | ||
+ SetLastError(ERROR_TIMEOUT); | ||
+ return FALSE; | ||
+ } | ||
+ | ||
+ SetLastError(ERROR_NO_MORE_ITEMS); | ||
+ return FALSE; | ||
+} | ||
+ | ||
BOOL WINAPI EvtClose(EVT_HANDLE handle) | ||
{ | ||
FIXME("(%p) stub\n", handle); | ||
diff --git a/dlls/wevtapi/wevtapi.spec b/dlls/wevtapi/wevtapi.spec | ||
index 328b0dbcd98..cf6002fa48d 100644 | ||
--- a/dlls/wevtapi/wevtapi.spec | ||
+++ b/dlls/wevtapi/wevtapi.spec | ||
@@ -25,7 +25,7 @@ | ||
@ stub EvtIntRetractConfig | ||
@ stub EvtIntSysprepCleanup | ||
@ stub EvtIntWriteXmlEventToLocalLogfile | ||
-@ stub EvtNext | ||
+@ stdcall EvtNext(ptr long ptr long long ptr) | ||
@ stub EvtNextChannelPath | ||
@ stub EvtNextEventMetadata | ||
@ stub EvtNextPublisherId | ||
-- | ||
2.11.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fixes: [42170] Add stub for wevtapi.EvtNext |