mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
Added patch to implement stub for wevtapi.EvtNext.
This commit is contained in:
parent
e6ff2b49ac
commit
dbbf832f67
@ -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:
|
||||
|
@ -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
patches/wevtapi-EvtNext/definition
Normal file
1
patches/wevtapi-EvtNext/definition
Normal file
@ -0,0 +1 @@
|
||||
Fixes: [42170] Add stub for wevtapi.EvtNext
|
Loading…
Reference in New Issue
Block a user