Alex Henrie : tbs: Add Tbsi_Context_Create stub.
Alexandre Julliard
julliard at winehq.org
Thu Jul 1 15:53:48 CDT 2021
Module: wine
Branch: master
Commit: dbabe2fa496fb5ba43a32636658106945ecc1d15
URL: https://source.winehq.org/git/wine.git/?a=commit;h=dbabe2fa496fb5ba43a32636658106945ecc1d15
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Tue Jun 29 20:33:48 2021 -0600
tbs: Add Tbsi_Context_Create stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51335
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/tbs/Makefile.in | 3 +++
dlls/tbs/tbs.c | 31 +++++++++++++++++++++++++++++++
dlls/tbs/tbs.spec | 2 +-
3 files changed, 35 insertions(+), 1 deletion(-)
diff --git a/dlls/tbs/Makefile.in b/dlls/tbs/Makefile.in
index 8f23c81e4f9..454d66bc6f4 100644
--- a/dlls/tbs/Makefile.in
+++ b/dlls/tbs/Makefile.in
@@ -1,3 +1,6 @@
MODULE = tbs.dll
EXTRADLLFLAGS = -mno-cygwin
+
+C_SRCS = \
+ tbs.c
diff --git a/dlls/tbs/tbs.c b/dlls/tbs/tbs.c
new file mode 100644
index 00000000000..452a3890e68
--- /dev/null
+++ b/dlls/tbs/tbs.c
@@ -0,0 +1,31 @@
+/*
+ * Trusted Platform Module Base Services
+ *
+ * Copyright 2021 Alex Henrie
+ *
+ * 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 "windef.h"
+#include "tbs.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(tbs);
+
+TBS_RESULT WINAPI Tbsi_Context_Create(const TBS_CONTEXT_PARAMS *params, TBS_HCONTEXT *out)
+{
+ FIXME("(%p, %p) stub\n", params, out);
+ return TBS_E_TPM_NOT_FOUND;
+}
diff --git a/dlls/tbs/tbs.spec b/dlls/tbs/tbs.spec
index 3fa5c04f863..151ea1c6478 100644
--- a/dlls/tbs/tbs.spec
+++ b/dlls/tbs/tbs.spec
@@ -3,7 +3,7 @@
@ stub GetDeviceID
@ stub GetDeviceIDString
@ stub GetDeviceIDWithTimeout
-@ stub Tbsi_Context_Create
+@ stdcall Tbsi_Context_Create(ptr ptr)
@ stub Tbsi_Create_Windows_Key
@ stub Tbsi_FilterLog
@ stub Tbsi_GetDeviceInfo
More information about the wine-cvs
mailing list