aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32.c')
-rw-r--r--src/w32.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/w32.c b/src/w32.c
index 15cfd92a29a..9b1d94de786 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -7432,7 +7432,7 @@ sys_socket (int af, int type, int protocol)
7432 if (winsock_lib == NULL) 7432 if (winsock_lib == NULL)
7433 { 7433 {
7434 errno = ENETDOWN; 7434 errno = ENETDOWN;
7435 return INVALID_SOCKET; 7435 return -1;
7436 } 7436 }
7437 7437
7438 check_errno (); 7438 check_errno ();
@@ -9270,8 +9270,10 @@ maybe_load_unicows_dll (void)
9270 pointers, and assign the correct addresses to these 9270 pointers, and assign the correct addresses to these
9271 pointers at program startup (see emacs.c, which calls 9271 pointers at program startup (see emacs.c, which calls
9272 this function early on). */ 9272 this function early on). */
9273 pMultiByteToWideChar = GetProcAddress (ret, "MultiByteToWideChar"); 9273 pMultiByteToWideChar =
9274 pWideCharToMultiByte = GetProcAddress (ret, "WideCharToMultiByte"); 9274 (MultiByteToWideChar_Proc)GetProcAddress (ret, "MultiByteToWideChar");
9275 pWideCharToMultiByte =
9276 (WideCharToMultiByte_Proc)GetProcAddress (ret, "WideCharToMultiByte");
9275 return ret; 9277 return ret;
9276 } 9278 }
9277 else 9279 else
@@ -9379,6 +9381,11 @@ globals_of_w32 (void)
9379 w32_unicode_filenames = 0; 9381 w32_unicode_filenames = 0;
9380 else 9382 else
9381 w32_unicode_filenames = 1; 9383 w32_unicode_filenames = 1;
9384
9385#ifdef HAVE_MODULES
9386 extern void dynlib_reset_last_error (void);
9387 dynlib_reset_last_error ();
9388#endif
9382} 9389}
9383 9390
9384/* For make-serial-process */ 9391/* For make-serial-process */