mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 13:38:19 +00:00
[RUNTMCHK] Provide fallback memset for arm builds
This commit is contained in:
parent
93b2d5597e
commit
35aeaa2397
1 changed files with 16 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue