win32: use LoadLibrary() instead of LoadLibraryW()

This commit is contained in:
Rémi Denis-Courmont 2016-11-23 23:56:34 +02:00
parent 9f110ac14c
commit 3bf60326e5
1 changed files with 2 additions and 2 deletions

View File

@ -104,8 +104,8 @@ static int net_SetupDgramSocket (vlc_object_t *p_obj, int fd,
* SetSocketMediaStreamingMode is present in win 8 and later, so we set
* receive buffer if that isn't present
*/
#if _WIN32_WINNT < 0x602
HINSTANCE h_Network = LoadLibraryW(L"Windows.Networking.dll");
#if (_WIN32_WINNT < _WIN32_WINNT_WIN8)
HINSTANCE h_Network = LoadLibrary(TEXT("Windows.Networking.dll"));
if( (h_Network == NULL) ||
(GetProcAddress( h_Network, "SetSocketMediaStreamingMode" ) == NULL ) )
{