Fix for older Windows (7 and below) / VC

This commit is contained in:
Vladimir Dubrovin committed 2026-04-24 17:04:03 +03:00
1 parent e6c3427cab
commit 6b61cfde4c
4 files changed
+8 -7

No files matched your search

+3 -3
View File
@@ -116,11 +116,11 @@ void * threadfunc (void *p) {
#undef param
int pushthreadinit(){
return
#ifdef _WIN32
WriteFile(conf.threadinit[1], "1", 1, NULL, NULL);
DWORD n;
return WriteFile(conf.threadinit[1], "1", 1, &n, NULL);
#else
write(conf.threadinit[1], "1", 1);
return write(conf.threadinit[1], "1", 1);
#endif
}