From dbbf832f678ae62cca341703fd704e9a53f3f7dc Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Sun, 5 Feb 2017 12:12:19 +0100 Subject: [PATCH] Added patch to implement stub for wevtapi.EvtNext. --- patches/patchinstall.sh | 19 +++++++ .../0001-wevtapi-Add-stub-for-EvtNext.patch | 53 +++++++++++++++++++ patches/wevtapi-EvtNext/definition | 1 + 3 files changed, 73 insertions(+) create mode 100644 patches/wevtapi-EvtNext/0001-wevtapi-Add-stub-for-EvtNext.patch create mode 100644 patches/wevtapi-EvtNext/definition diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index 7503703a..9c197099 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -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" @@ -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" ;; @@ -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: diff --git a/patches/wevtapi-EvtNext/0001-wevtapi-Add-stub-for-EvtNext.patch b/patches/wevtapi-EvtNext/0001-wevtapi-Add-stub-for-EvtNext.patch new file mode 100644 index 00000000..ff393cde --- /dev/null +++ b/patches/wevtapi-EvtNext/0001-wevtapi-Add-stub-for-EvtNext.patch @@ -0,0 +1,53 @@ +From 31dab1225f9a417df6237c0f33a57128645af4d7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michael=20M=C3=BCller?= +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 + diff --git a/patches/wevtapi-EvtNext/definition b/patches/wevtapi-EvtNext/definition new file mode 100644 index 00000000..2c4b746e --- /dev/null +++ b/patches/wevtapi-EvtNext/definition @@ -0,0 +1 @@ +Fixes: [42170] Add stub for wevtapi.EvtNext