mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
doc: Fix an incorrect comment about calling FreeLibrary() on Windows
There's an incorrect comment in compat_time.c that suggests we call FreeLibrary() before we're done using the library's functions. See 29642 for background. Closes ticket 29643.
This commit is contained in:
parent
955a622391
commit
f186f21a4e
@ -522,7 +522,9 @@ monotime_init_internal(void)
|
||||
GetTickCount64_fn = (GetTickCount64_fn_t)
|
||||
GetProcAddress(h, "GetTickCount64");
|
||||
}
|
||||
// FreeLibrary(h) ?
|
||||
// We can't call FreeLibrary(h) here, because freeing the handle may
|
||||
// unload the library, and cause future calls to GetTickCount64_fn()
|
||||
// to fail. See 29642 for details.
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user