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:
parent
15d6f564cd
commit
8cd1ff7a45
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue