]> code.delx.au - gnu-emacs/blobdiff - src/emacs.c
Simplify recording of main thread's ID on MS-Windows
[gnu-emacs] / src / emacs.c
index ba71ceb84ce09f608fecfaaf3a42f02c2cd37b59..c411da6a5da87212b44e0dfe98138519d559c410 100644 (file)
@@ -760,6 +760,9 @@ main (int argc, char **argv)
      to have non-stub implementations of APIs we need to convert file
      names between UTF-8 and the system's ANSI codepage.  */
   maybe_load_unicows_dll ();
+  /* This has to be done before module_init is called below, so that
+     the latter could use the thread ID of the main thread.  */
+  w32_init_main_thread ();
 #endif
 #endif