From b3579602a731dd7398b113f397cd358554af7567 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Sun, 27 Dec 2020 09:57:46 +1100 Subject: [PATCH] dpmodemx: Add stub SPInit --- dlls/dpmodemx/Makefile.in | 5 ++++- dlls/dpmodemx/dpmodemx.spec | 2 +- dlls/dpmodemx/dpmodemx_main.c | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 dlls/dpmodemx/dpmodemx_main.c diff --git a/dlls/dpmodemx/Makefile.in b/dlls/dpmodemx/Makefile.in index c15b7a33112..b7897fb1cf6 100644 --- a/dlls/dpmodemx/Makefile.in +++ b/dlls/dpmodemx/Makefile.in @@ -1,6 +1,9 @@ MODULE = dpmodemx.dll -EXTRADLLFLAGS = -Wb,--prefer-native +EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native RC_SRCS = version.rc + +C_SRCS = \ + dpmodemx_main.c diff --git a/dlls/dpmodemx/dpmodemx.spec b/dlls/dpmodemx/dpmodemx.spec index c4c4ef212a7..2ef9c5bf45c 100644 --- a/dlls/dpmodemx/dpmodemx.spec +++ b/dlls/dpmodemx/dpmodemx.spec @@ -1 +1 @@ -@ stub SPInit +@ stdcall SPInit(ptr) diff --git a/dlls/dpmodemx/dpmodemx_main.c b/dlls/dpmodemx/dpmodemx_main.c new file mode 100644 index 00000000000..f35e0804299 --- /dev/null +++ b/dlls/dpmodemx/dpmodemx_main.c @@ -0,0 +1,34 @@ +/* + * + * Copyright 2020 Austin English + * + * 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 "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +#include "wine/dplaysp.h" + +WINE_DEFAULT_DEBUG_CHANNEL(dpmodemx); + +HRESULT WINAPI SPInit( LPSPINITDATA lpspData ) +{ + FIXME("Currently not implemented.\n"); + return DPERR_UNAVAILABLE; +} -- 2.20.1