Commit 3bf60326 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

win32: use LoadLibrary() instead of LoadLibraryW()

parent 9f110ac1
......@@ -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 ) )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment