[PATCH v3 1/3] wow64cpu: Add stub dll.

Zebediah Figura z.figura12 at gmail.com
Wed Oct 28 10:56:05 CDT 2020


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 configure                     |  1 +
 configure.ac                  |  1 +
 dlls/wow64cpu/Makefile.in     |  7 +++++++
 dlls/wow64cpu/wow64cpu.spec   |  9 +++++++++
 dlls/wow64cpu/wow64cpu_main.c | 27 +++++++++++++++++++++++++++
 5 files changed, 45 insertions(+)
 create mode 100644 dlls/wow64cpu/Makefile.in
 create mode 100644 dlls/wow64cpu/wow64cpu.spec
 create mode 100644 dlls/wow64cpu/wow64cpu_main.c

diff --git a/configure b/configure
index ac6a7985cc7..b7a6fcae9a8 100755
--- a/configure
+++ b/configure
@@ -21142,6 +21142,7 @@ wine_fn_config_makefile dlls/wmvcore enable_wmvcore
 wine_fn_config_makefile dlls/wmvcore/tests enable_tests
 wine_fn_config_makefile dlls/wnaspi32 enable_wnaspi32
 wine_fn_config_makefile dlls/wow32 enable_win16
+wine_fn_config_makefile dlls/wow64cpu enable_win64
 wine_fn_config_makefile dlls/wpc enable_wpc
 wine_fn_config_makefile dlls/wpc/tests enable_tests
 wine_fn_config_makefile dlls/wpcap enable_wpcap
diff --git a/configure.ac b/configure.ac
index 2f81fd22610..83939c85e52 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3885,6 +3885,7 @@ WINE_CONFIG_MAKEFILE(dlls/wmvcore)
 WINE_CONFIG_MAKEFILE(dlls/wmvcore/tests)
 WINE_CONFIG_MAKEFILE(dlls/wnaspi32)
 WINE_CONFIG_MAKEFILE(dlls/wow32,enable_win16)
+WINE_CONFIG_MAKEFILE(dlls/wow64cpu,enable_win64)
 WINE_CONFIG_MAKEFILE(dlls/wpc)
 WINE_CONFIG_MAKEFILE(dlls/wpc/tests)
 WINE_CONFIG_MAKEFILE(dlls/wpcap)
diff --git a/dlls/wow64cpu/Makefile.in b/dlls/wow64cpu/Makefile.in
new file mode 100644
index 00000000000..2ab1ca62c4a
--- /dev/null
+++ b/dlls/wow64cpu/Makefile.in
@@ -0,0 +1,7 @@
+MODULE        = wow64cpu.dll
+IMPORTS       = winecrt0 ntdll
+
+EXTRADLLFLAGS = -nodefaultlibs -mno-cygwin
+
+C_SRCS = \
+	wow64cpu_main.c
diff --git a/dlls/wow64cpu/wow64cpu.spec b/dlls/wow64cpu/wow64cpu.spec
new file mode 100644
index 00000000000..bd156df1e79
--- /dev/null
+++ b/dlls/wow64cpu/wow64cpu.spec
@@ -0,0 +1,9 @@
+# @ stub BTCpuGetBopCode
+# @ stub BTCpuGetContext
+# @ stub BTCpuProcessInit
+# @ stub BTCpuResetToConsistentState
+# @ stub BTCpuSetContext
+# @ stub BTCpuSimulate
+# @ stub BTCpuTurboThunkControl
+# @ stub TurboDispatchJumpAddressEnd
+# @ stub TurboDispatchJumpAddressStart
diff --git a/dlls/wow64cpu/wow64cpu_main.c b/dlls/wow64cpu/wow64cpu_main.c
new file mode 100644
index 00000000000..4da9695230b
--- /dev/null
+++ b/dlls/wow64cpu/wow64cpu_main.c
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2018 Zebediah Figura
+ *
+ * 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 <stdarg.h>
+#include "windef.h"
+#include "winternl.h"
+
+BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, void *reserved )
+{
+    if (reason == DLL_PROCESS_ATTACH) LdrDisableThreadCalloutsForDll( inst );
+    return TRUE;
+}
-- 
2.28.0




More information about the wine-devel mailing list