]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Merge branch 'ticket31374_035' into maint-0.4.1
authorNick Mathewson <nickm@torproject.org>
Thu, 8 Aug 2019 19:24:52 +0000 (15:24 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 8 Aug 2019 19:24:52 +0000 (15:24 -0400)
1  2 
src/lib/time/compat_time.c

index 7136eaba676adee5935812b96a02831b6d746bc5,98854bad2c1315744baec7134c9261c4b30f7578..3f41500f3a5e00fa03be90705d2e044091b03c73
@@@ -527,12 -519,10 +527,12 @@@ monotime_init_internal(void
  
    HANDLE h = load_windows_system_library(TEXT("kernel32.dll"));
    if (h) {
-     GetTickCount64_fn = (GetTickCount64_fn_t)
+     GetTickCount64_fn = (GetTickCount64_fn_t) (void(*)(void))
        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