From 878214df44a41eef49b65039ab0cdfdbf847a5fe Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 13 Apr 2020 23:46:18 +0200 Subject: tool: do not declare functions with Curl_ prefix To avoid collision risks with private libcurl symbols when linked with static versions (or just versions not hiding internal symbols). Reported-by: hydra3333 on github Fixes #5219 Closes #5234 --- src/tool_doswin.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/tool_doswin.c') diff --git a/src/tool_doswin.c b/src/tool_doswin.c index 221e3864b..b7df3e615 100644 --- a/src/tool_doswin.c +++ b/src/tool_doswin.c @@ -697,8 +697,8 @@ cleanup: return slist; } -LARGE_INTEGER Curl_freq; -bool Curl_isVistaOrGreater; +LARGE_INTEGER tool_freq; +bool tool_isVistaOrGreater; CURLcode win32_init(void) { @@ -713,13 +713,13 @@ CURLcode win32_init(void) VER_SET_CONDITION(mask, VER_MINORVERSION, op); if(VerifyVersionInfoA(&osvi, (VER_MAJORVERSION | VER_MINORVERSION), mask)) - Curl_isVistaOrGreater = true; + tool_isVistaOrGreater = true; else if(GetLastError() == ERROR_OLD_WIN_VERSION) - Curl_isVistaOrGreater = false; + tool_isVistaOrGreater = false; else return CURLE_FAILED_INIT; - QueryPerformanceFrequency(&Curl_freq); + QueryPerformanceFrequency(&tool_freq); return CURLE_OK; } -- cgit v1.2.3