Vijay Kiran Kamuju : msdrm: Add stub DRMRegisterContent function.

Alexandre Julliard julliard at winehq.org
Wed Jun 16 16:26:24 CDT 2021


Module: wine
Branch: master
Commit: afd5550b07f6d55e56738f61d829085d6bc82888
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=afd5550b07f6d55e56738f61d829085d6bc82888

Author: Vijay Kiran Kamuju <infyquest at gmail.com>
Date:   Fri Feb 19 14:02:32 2021 +0100

msdrm: Add stub DRMRegisterContent function.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50595
Signed-off-by: Vijay Kiran Kamuju <infyquest at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msdrm/Makefile.in |  5 ++++-
 dlls/msdrm/main.c      | 34 ++++++++++++++++++++++++++++++++++
 dlls/msdrm/msdrm.spec  |  2 +-
 3 files changed, 39 insertions(+), 2 deletions(-)

diff --git a/dlls/msdrm/Makefile.in b/dlls/msdrm/Makefile.in
index 07d04d4f861..32167468eba 100644
--- a/dlls/msdrm/Makefile.in
+++ b/dlls/msdrm/Makefile.in
@@ -1,3 +1,6 @@
 MODULE    = msdrm.dll
 
-EXTRADLLFLAGS = -Wb,--prefer-native
+EXTRADLLFLAGS = -mno-cygwin -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..db77f791311
--- /dev/null
+++ b/dlls/msdrm/main.c
@@ -0,0 +1,34 @@
+/*
+ * 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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.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 8b85f3b53a4..5a83307ee05 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




More information about the wine-cvs mailing list