]> git.sesse.net Git - vlc/commitdiff
Win32: fix GetProcAddress call with UNICODE
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 14 Jan 2013 16:45:34 +0000 (17:45 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 14 Jan 2013 16:45:34 +0000 (17:45 +0100)
Weirdly, there is no GetProcAddressW, indeed

src/win32/thread.c

index 9de54466496c21e34dbe10200e31ac34f7aa7af7..817cbadf467eb438baec737878fb6cbb3e523407 100644 (file)
@@ -735,7 +735,7 @@ static void SelectClockSource (vlc_object_t *obj)
         if (unlikely(h == NULL))
             abort ();
         clk.interrupt.query = (void *)GetProcAddress (h,
-                                                      _T("QueryUnbiasedInterruptTime"));
+                                                      "QueryUnbiasedInterruptTime");
         if (unlikely(clk.interrupt.query == NULL))
             abort ();
 #endif
@@ -749,7 +749,7 @@ static void SelectClockSource (vlc_object_t *obj)
         HANDLE h = GetModuleHandle (_T("kernel32.dll"));
         if (unlikely(h == NULL))
             abort ();
-        clk.tick.get = (void *)GetProcAddress (h, _T("GetTickCount64"));
+        clk.tick.get = (void *)GetProcAddress (h, "GetTickCount64");
         if (unlikely(clk.tick.get == NULL))
             abort ();
 #endif