[PATCH] kernelbase: Add QuirkIsEnabled3 stub.
Andrey Gusev
andrey.goosev at gmail.com
Fri Mar 24 07:13:59 CDT 2017
Tried with one and three parameters but it crashes in both cases.
Fixes bug 42700
Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
.../api-ms-win-core-quirks-l1-1-0.spec | 2 +-
dlls/kernelbase/Makefile.in | 3 +++
dlls/kernelbase/kernelbase.spec | 1 +
dlls/kernelbase/main.c | 30 ++++++++++++++++++++++
4 files changed, 35 insertions(+), 1 deletion(-)
create mode 100644 dlls/kernelbase/main.c
diff --git a/dlls/api-ms-win-core-quirks-l1-1-0/api-ms-win-core-quirks-l1-1-0.spec b/dlls/api-ms-win-core-quirks-l1-1-0/api-ms-win-core-quirks-l1-1-0.spec
index 761120f..e8f77c7 100644
--- a/dlls/api-ms-win-core-quirks-l1-1-0/api-ms-win-core-quirks-l1-1-0.spec
+++ b/dlls/api-ms-win-core-quirks-l1-1-0/api-ms-win-core-quirks-l1-1-0.spec
@@ -2,7 +2,7 @@
@ stub QuirkGetData2
@ stub QuirkIsEnabled
@ stub QuirkIsEnabled2
-@ stub QuirkIsEnabled3
+@ stdcall QuirkIsEnabled3(ptr ptr) kernelbase.QuirkIsEnabled3
@ stub QuirkIsEnabledForPackage
@ stub QuirkIsEnabledForPackage2
@ stub QuirkIsEnabledForProcess
diff --git a/dlls/kernelbase/Makefile.in b/dlls/kernelbase/Makefile.in
index b9caed0..74df98c 100644
--- a/dlls/kernelbase/Makefile.in
+++ b/dlls/kernelbase/Makefile.in
@@ -1 +1,4 @@
MODULE = kernelbase.dll
+
+C_SRCS = \
+ main.c
diff --git a/dlls/kernelbase/kernelbase.spec b/dlls/kernelbase/kernelbase.spec
index 95ce6c1..48ef041 100644
--- a/dlls/kernelbase/kernelbase.spec
+++ b/dlls/kernelbase/kernelbase.spec
@@ -481,6 +481,7 @@
@ stub QuerySecurityAccessMask
@ stub QueryThreadpoolStackInformation
@ stdcall QueueUserAPC(ptr long long) kernel32.QueueUserAPC
+@ stdcall QuirkIsEnabled3(ptr ptr)
@ stdcall RaiseException(long long long ptr) kernel32.RaiseException
@ stdcall ReadFile(long ptr long ptr ptr) kernel32.ReadFile
@ stdcall ReadFileEx(long ptr long ptr ptr) kernel32.ReadFileEx
diff --git a/dlls/kernelbase/main.c b/dlls/kernelbase/main.c
new file mode 100644
index 0000000..30cba3f
--- /dev/null
+++ b/dlls/kernelbase/main.c
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2017 Andrey Gusev
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(kernelbase);
+
+/***********************************************************************
+ * QuirkIsEnabled3 (KERNELBASE.@)
+ */
+BOOL WINAPI QuirkIsEnabled3(void *unk1, void *unk2)
+{
+ FIXME("(%p, %p) stub!\n", unk1, unk2);
+ return FALSE;
+}
--
2.7.4
More information about the wine-patches
mailing list