[vlc-commits] win32: use LoadLibrary() instead of LoadLibraryW()

Rémi Denis-Courmont git at videolan.org
Wed Nov 23 22:58:17 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Nov 23 23:56:34 2016 +0200| [3bf60326e50131547134e9870645ca6979d6cd78] | committer: Rémi Denis-Courmont

win32: use LoadLibrary() instead of LoadLibraryW()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3bf60326e50131547134e9870645ca6979d6cd78
---

 src/network/udp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/network/udp.c b/src/network/udp.c
index 19a907a..d098fb1 100644
--- a/src/network/udp.c
+++ b/src/network/udp.c
@@ -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 ) )
     {



More information about the vlc-commits mailing list