From: Qian Hong Subject: [PATCH] null.sys: Added stub dll. Message-Id: <5500C4F7.4090607@codeweavers.com> Date: Thu, 12 Mar 2015 06:43:03 +0800 First part for https://bugs.winehq.org/show_bug.cgi?id=38107 --- configure | 2 ++ configure.ac | 1 + dlls/null.sys/Makefile.in | 5 +++++ dlls/null.sys/main.c | 38 ++++++++++++++++++++++++++++++++++++++ dlls/null.sys/null.sys.spec | 1 + 5 files changed, 47 insertions(+) create mode 100644 dlls/null.sys/Makefile.in create mode 100644 dlls/null.sys/main.c create mode 100644 dlls/null.sys/null.sys.spec diff --git a/configure b/configure index ca1a2b0..f0c5569 100755 --- a/configure +++ b/configure @@ -1184,6 +1184,7 @@ enable_ntdll enable_ntdsapi enable_ntoskrnl_exe enable_ntprint +enable_null_sys enable_objsel enable_odbc32 enable_odbccp32 @@ -17441,6 +17442,7 @@ wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib wine_fn_config_dll ntprint enable_ntprint wine_fn_config_test dlls/ntprint/tests ntprint_test +wine_fn_config_dll null.sys enable_null_sys wine_fn_config_dll objsel enable_objsel clean wine_fn_config_dll odbc32 enable_odbc32 implib wine_fn_config_dll odbccp32 enable_odbccp32 implib diff --git a/configure.ac b/configure.ac index f242181..cab618c 100644 --- a/configure.ac +++ b/configure.ac @@ -3143,6 +3143,7 @@ WINE_CONFIG_TEST(dlls/ntdsapi/tests) WINE_CONFIG_DLL(ntoskrnl.exe,,[implib]) WINE_CONFIG_DLL(ntprint) WINE_CONFIG_TEST(dlls/ntprint/tests) +WINE_CONFIG_DLL(null.sys) WINE_CONFIG_DLL(objsel,,[clean]) WINE_CONFIG_DLL(odbc32,,[implib]) WINE_CONFIG_DLL(odbccp32,,[implib]) diff --git a/dlls/null.sys/Makefile.in b/dlls/null.sys/Makefile.in new file mode 100644 index 0000000..4ea3b55 --- /dev/null +++ b/dlls/null.sys/Makefile.in @@ -0,0 +1,5 @@ +MODULE = null.sys +EXTRADLLFLAGS = -Wb,--subsystem,native + +C_SRCS = \ + main.c diff --git a/dlls/null.sys/main.c b/dlls/null.sys/main.c new file mode 100644 index 0000000..141c218 --- /dev/null +++ b/dlls/null.sys/main.c @@ -0,0 +1,38 @@ +/* + * null.sys + * + * Copyright 2015 Qian Hong for CodeWeavers + * + * 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 + +#include "ntstatus.h" +#define WIN32_NO_STATUS +#include "windef.h" +#include "winbase.h" +#include "winternl.h" +#include "ddk/wdm.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(null); + +NTSTATUS WINAPI DriverEntry(DRIVER_OBJECT *driver, UNICODE_STRING *path) +{ + TRACE("(%p, %s)\n", driver, debugstr_w(path->Buffer)); + + return STATUS_SUCCESS; +} diff --git a/dlls/null.sys/null.sys.spec b/dlls/null.sys/null.sys.spec new file mode 100644 index 0000000..76421d7 --- /dev/null +++ b/dlls/null.sys/null.sys.spec @@ -0,0 +1 @@ +# nothing to export