fd = dup (rtp_fd);
#else
WSAPROTOCOL_INFO info;
- WSADuplicateSocket (rtp_fd, GetProcessId (), &info);
+ WSADuplicateSocket (rtp_fd, GetCurrentProcessId (), &info);
fd = WSASocket (info.iAddressFamily, info.iSocketType, info.iProtocol,
&info, 0, 0);
#endif