[PATCH v2] msdrm: Add stub DRMRegisterContent function.

Vijay Kiran Kamuju infyquest at gmail.com
Tue Jun 8 13:42:30 CDT 2021


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50595

Signed-off-by: Vijay Kiran Kamuju <infyquest at gmail.com>
---
 dlls/msdrm/Makefile.in |  3 +++
 dlls/msdrm/main.c      | 33 +++++++++++++++++++++++++++++++++
 dlls/msdrm/msdrm.spec  |  2 +-
 3 files changed, 37 insertions(+), 1 deletion(-)
 create mode 100644 dlls/msdrm/main.c

diff --git a/dlls/msdrm/Makefile.in b/dlls/msdrm/Makefile.in
index 07d04d4f861..21137dd2da5 100644
--- a/dlls/msdrm/Makefile.in
+++ b/dlls/msdrm/Makefile.in
@@ -1,3 +1,6 @@
 MODULE    = msdrm.dll
 
 EXTRADLLFLAGS = -Wb,--prefer-native
+
+C_SRCS = \
+	main.c
diff --git a/dlls/msdrm/main.c b/dlls/msdrm/main.c
new file mode 100644
index 00000000000..37ae777ba29
--- /dev/null
+++ b/dlls/msdrm/main.c
@@ -0,0 +1,33 @@
+/*
+ * Windows Rights Management Client
+ *
+ * Copyright 2021 Vijay Kiran Kamuju
+ *
+ * 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"
+
+#include "windef.h"
+#include "winbase.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(msdrm);
+
+HRESULT WINAPI DRMRegisterContent(BOOL value)
+{
+     FIXME("(%u): stub\n", value);
+
+     return S_OK;
+}
diff --git a/dlls/msdrm/msdrm.spec b/dlls/msdrm/msdrm.spec
index 5d4d3d61bce..85cbb02541d 100644
--- a/dlls/msdrm/msdrm.spec
+++ b/dlls/msdrm/msdrm.spec
@@ -70,7 +70,7 @@
 @ stub DRMIsWindowProtected
 @ stub DRMLoadLibrary
 @ stub DRMParseUnboundLicense
-@ stub DRMRegisterContent
+@ stdcall DRMRegisterContent(long)
 @ stub DRMRegisterProtectedWindow
 @ stub DRMRegisterRevocationList
 @ stub DRMRepair
-- 
2.30.1




More information about the wine-devel mailing list