Commit 8d7cd932 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: fix GetProcAddress call with UNICODE

Weirdly, there is no GetProcAddressW, indeed
parent 8bd0f4ae
...@@ -735,7 +735,7 @@ static void SelectClockSource (vlc_object_t *obj) ...@@ -735,7 +735,7 @@ static void SelectClockSource (vlc_object_t *obj)
if (unlikely(h == NULL)) if (unlikely(h == NULL))
abort (); abort ();
clk.interrupt.query = (void *)GetProcAddress (h, clk.interrupt.query = (void *)GetProcAddress (h,
_T("QueryUnbiasedInterruptTime")); "QueryUnbiasedInterruptTime");
if (unlikely(clk.interrupt.query == NULL)) if (unlikely(clk.interrupt.query == NULL))
abort (); abort ();
#endif #endif
...@@ -749,7 +749,7 @@ static void SelectClockSource (vlc_object_t *obj) ...@@ -749,7 +749,7 @@ static void SelectClockSource (vlc_object_t *obj)
HANDLE h = GetModuleHandle (_T("kernel32.dll")); HANDLE h = GetModuleHandle (_T("kernel32.dll"));
if (unlikely(h == NULL)) if (unlikely(h == NULL))
abort (); abort ();
clk.tick.get = (void *)GetProcAddress (h, _T("GetTickCount64")); clk.tick.get = (void *)GetProcAddress (h, "GetTickCount64");
if (unlikely(clk.tick.get == NULL)) if (unlikely(clk.tick.get == NULL))
abort (); abort ();
#endif #endif
......
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