mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:33:31 +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
|
|
@ -51,5 +51,10 @@ int main(int argc, char **argv)
|
|||
return 99;
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
if(win32_init())
|
||||
return 2;
|
||||
#endif
|
||||
|
||||
return entry_func(argc - 1, argv + 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue