Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
Added patch to implement stub for wevtapi.EvtNext.
Browse files Browse the repository at this point in the history
  • Loading branch information
slackner committed Feb 5, 2017
1 parent e6ff2b4 commit dbbf832
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
19 changes: 19 additions & 0 deletions patches/patchinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ patch_enable_all ()
enable_vulkan_Vulkan_Implementation="$1"
enable_wbemdisp_ISWbemSecurity="$1"
enable_wbemprox_Printer="$1"
enable_wevtapi_EvtNext="$1"
enable_widl_SLTG_Typelib_Support="$1"
enable_windowscodecs_32bppGrayFloat="$1"
enable_windowscodecs_32bppPRGBA="$1"
Expand Down Expand Up @@ -1326,6 +1327,9 @@ patch_enable ()
wbemprox-Printer)
enable_wbemprox_Printer="$2"
;;
wevtapi-EvtNext)
enable_wevtapi_EvtNext="$2"
;;
widl-SLTG_Typelib_Support)
enable_widl_SLTG_Typelib_Support="$2"
;;
Expand Down Expand Up @@ -7693,6 +7697,21 @@ if test "$enable_wbemprox_Printer" -eq 1; then
) >> "$patchlist"
fi

# Patchset wevtapi-EvtNext
# |
# | This patchset fixes the following Wine bugs:
# | * [#42170] Add stub for wevtapi.EvtNext
# |
# | Modified files:
# | * dlls/wevtapi/main.c, dlls/wevtapi/wevtapi.spec
# |
if test "$enable_wevtapi_EvtNext" -eq 1; then
patch_apply wevtapi-EvtNext/0001-wevtapi-Add-stub-for-EvtNext.patch
(
printf '%s\n' '+ { "Michael Müller", "wevtapi: Add stub for EvtNext.", 1 },';
) >> "$patchlist"
fi

# Patchset windowscodecs-32bppGrayFloat
# |
# | This patchset fixes the following Wine bugs:
Expand Down
53 changes: 53 additions & 0 deletions patches/wevtapi-EvtNext/0001-wevtapi-Add-stub-for-EvtNext.patch
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

1 change: 1 addition & 0 deletions patches/wevtapi-EvtNext/definition
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixes: [42170] Add stub for wevtapi.EvtNext

0 comments on commit dbbf832

Please sign in to comment.