Kaynağa Gözat

Merge remote-tracking branch 'tor-github/pr/756' into maint-0.4.0

Nick Mathewson 6 yıl önce
ebeveyn
işleme
a9c84bfd35
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      src/lib/time/compat_time.c

+ 3 - 1
src/lib/time/compat_time.c

@@ -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