Use MAKEWORD macro in WSAStartup call per documentation

* autoload.cc (wsock_init): Use MAKEWORD macro to create requested
	version rather than handcrafted expression.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-01-12 15:25:15 +01:00
parent 15d6f564cd
commit 8cd1ff7a45
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,7 @@ wsock_init ()
GetProcAddress ((HMODULE) (dll->handle), "WSAStartup");
if (wsastartup)
{
int res = wsastartup ((2<<8) | 2, &wsadata);
int res = wsastartup (MAKEWORD (2, 2), &wsadata);
debug_printf ("res %d", res);
debug_printf ("wVersion %d", wsadata.wVersion);