mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:43:38 +03:00
tests/server: fix initialization on Windows Vista+
Make sure to call `curlx_now_init()` before the first call to `curlx_now()`. Before this patch the first `curlx_now()` used the non-Vista code path calling `GetTickCount()` on Vista+. This is harmless, but the upcoming PR #18009 is going to drop the non-Vista code path, causing a division by zero at startup in test servers, without this fix. Bug: https://github.com/curl/curl/pull/18009#issuecomment-3652154307 Closes #19973
This commit is contained in:
parent
2399ec74c3
commit
b10b7c1fce
9 changed files with 5 additions and 40 deletions
|
|
@ -875,11 +875,6 @@ static int test_socksd(int argc, char *argv[])
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
if(win32_init())
|
||||
return 2;
|
||||
#endif
|
||||
|
||||
CURLX_SET_BINMODE(stdin);
|
||||
CURLX_SET_BINMODE(stdout);
|
||||
CURLX_SET_BINMODE(stderr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue