[vlc-commits] Win32: fix GetProcAddress call with UNICODE

Jean-Baptiste Kempf git at videolan.org
Mon Jan 14 16:46:12 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jan 14 17:45:34 2013 +0100| [8d7cd932eaf3c56ab49b415162ac4bae752f6c1f] | committer: Jean-Baptiste Kempf

Win32: fix GetProcAddress call with UNICODE

Weirdly, there is no GetProcAddressW, indeed

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

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

diff --git a/src/win32/thread.c b/src/win32/thread.c
index 9de5446..817cbad 100644
--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -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



More information about the vlc-commits mailing list