https://git.reactos.org/?p=reactos.git;a=commitdiff;h=35aeaa239760f1b489b29…
commit 35aeaa239760f1b489b29c6a3d0342275f713d6b
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sun Aug 18 19:12:30 2019 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Tue Aug 20 22:28:11 2019 +0200
[RUNTMCHK] Provide fallback memset for arm builds
---
sdk/lib/runtmchk/rtcapi.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/sdk/lib/runtmchk/rtcapi.c b/sdk/lib/runtmchk/rtcapi.c
index 96631ca53c4..82d4cd45da0 100644
--- a/sdk/lib/runtmchk/rtcapi.c
+++ b/sdk/lib/runtmchk/rtcapi.c
@@ -15,6 +15,22 @@
#error Unsupported platform
#endif
+// Provide a fallback memset for libraries like kbdrost.dll
+#if defined(_M_ARM)
+void* __cdecl memset_fallback(void* src, int val, size_t count)
+{
+ char *char_src = (char *)src;
+ while(count > 0)
+ {
+ *char_src = val;
+ char_src++;
+ count--;
+ }
+ return src;
+}
+#pragma comment(linker, "/alternatename:memset=memset_fallback")
+#endif
+
int
__cdecl
_RTC_DefaultErrorFuncW(