<div dir="ltr">Just realized that I forgot to update the copyright year to 2022. Not sure if I should submit a revision for that or not, but in the meantime I'll wait for feedback for the code itself.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 12, 2022 at 6:04 AM Mohamad Al-Jaf <<a href="mailto:mohamadaljaf@gmail.com">mohamadaljaf@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Wine-Bug: <a href="https://bugs.winehq.org/show_bug.cgi?id=51850" rel="noreferrer" target="_blank">https://bugs.winehq.org/show_bug.cgi?id=51850</a><br>
Signed-off-by: Mohamad Al-Jaf <<a href="mailto:mohamadaljaf@gmail.com" target="_blank">mohamadaljaf@gmail.com</a>><br>
---<br>
Based on this: <a href="https://bugs.winehq.org/show_bug.cgi?id=51850#c6" rel="noreferrer" target="_blank">https://bugs.winehq.org/show_bug.cgi?id=51850#c6</a><br>
---<br>
 dlls/wdscore/Makefile.in  |  3 +++<br>
 dlls/wdscore/main.c       | 45 +++++++++++++++++++++++++++++++++++++++<br>
 dlls/wdscore/wdscore.spec |  2 +-<br>
 3 files changed, 49 insertions(+), 1 deletion(-)<br>
 create mode 100644 dlls/wdscore/main.c<br>
<br>
diff --git a/dlls/wdscore/Makefile.in b/dlls/wdscore/Makefile.in<br>
index 20ba1d3b1c9..2020e72c7bb 100644<br>
--- a/dlls/wdscore/Makefile.in<br>
+++ b/dlls/wdscore/Makefile.in<br>
@@ -1,3 +1,6 @@<br>
 MODULE    = wdscore.dll<br>
<br>
 EXTRADLLFLAGS = -Wb,--prefer-native<br>
+<br>
+C_SRCS = \<br>
+       main.c<br>
diff --git a/dlls/wdscore/main.c b/dlls/wdscore/main.c<br>
new file mode 100644<br>
index 00000000000..78309ac561d<br>
--- /dev/null<br>
+++ b/dlls/wdscore/main.c<br>
@@ -0,0 +1,45 @@<br>
+/*<br>
+ * Copyright 2021 Mohamad Al-Jaf<br>
+ *<br>
+ * This library is free software; you can redistribute it and/or<br>
+ * modify it under the terms of the GNU Lesser General Public<br>
+ * License as published by the Free Software Foundation; either<br>
+ * version 2.1 of the License, or (at your option) any later version.<br>
+ *<br>
+ * This library is distributed in the hope that it will be useful,<br>
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU<br>
+ * Lesser General Public License for more details.<br>
+ *<br>
+ * You should have received a copy of the GNU Lesser General Public<br>
+ * License along with this library; if not, write to the Free Software<br>
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA<br>
+ */<br>
+<br>
+#include <stdarg.h><br>
+#include <stdint.h><br>
+<br>
+#include "windef.h"<br>
+#include "winbase.h"<br>
+<br>
+#include "wine/asm.h"<br>
+#include "wine/debug.h"<br>
+<br>
+WINE_DEFAULT_DEBUG_CHANNEL(wdscore);<br>
+<br>
+uint32_t get_ip();<br>
+__ASM_GLOBAL_FUNC( get_ip,<br>
+    "mov 0(%esp), %eax\n\t"<br>
+    "ret\n\t" )<br>
+<br>
+<br>
+/***********************************************************************<br>
+ *           CurrentIP (wdscore.@)<br>
+ */<br>
+int WINAPI CurrentIP()<br>
+{<br>
+    uint32_t ip;<br>
+<br>
+    ip = get_ip();<br>
+    return ip;<br>
+}<br>
\ No newline at end of file<br>
diff --git a/dlls/wdscore/wdscore.spec b/dlls/wdscore/wdscore.spec<br>
index 15958b86aba..8b6febe6b3b 100644<br>
--- a/dlls/wdscore/wdscore.spec<br>
+++ b/dlls/wdscore/wdscore.spec<br>
@@ -71,7 +71,7 @@<br>
 @ stub ConstructPartialMsgIfW<br>
 @ stub ConstructPartialMsgVA<br>
 @ stub ConstructPartialMsgVW<br>
-@ stub CurrentIP<br>
+@ stdcall CurrentIP()<br>
 @ stub EndMajorTask<br>
 @ stub EndMinorTask<br>
 @ stub GetMajorTask<br>
-- <br>
2.34.1<br>
<br>
</blockquote></div>