mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Fix for older Windows (7 and below) / VC
This commit is contained in:
1 parent
e6c3427cab
commit
6b61cfde4c
4 files changed
+8
-7
No files matched your search
+3
-3
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user