fix build

This commit is contained in:
freedom
2023-09-06 05:40:15 -06:00
parent d01b18e035
commit d7e5d10209

View File

@@ -166,6 +166,7 @@ int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance,
return 0;
}
#ifdef MEMSETFIX
#pragma function(memset)
void *memset(char* dst, int value, size_t count) {
while (count--) { *dst++ = value; }
@@ -181,4 +182,5 @@ void *memcpy(char *dst, const char *src, size_t count) {
void __stdcall wWinMainCRTStartup() {
int code = wWinMain(GetModuleHandle(0), 0, 0, 0);
ExitProcess(code);
}
}
#endif