Fix Xbox One port.

This commit is contained in:
Mike Pall
2015-06-16 04:27:44 +02:00
parent fe565222a1
commit 28d8728869
4 changed files with 8 additions and 9 deletions

View File

@@ -266,7 +266,7 @@ static void profile_timer_start(ProfileState *ps)
{
#if LJ_TARGET_WINDOWS
if (!ps->wmm) { /* Load WinMM library on-demand. */
ps->wmm = LoadLibraryA("winmm.dll");
ps->wmm = LoadLibraryExA("winmm.dll", NULL, 0);
if (ps->wmm) {
ps->wmm_tbp = (WMM_TPFUNC)GetProcAddress(ps->wmm, "timeBeginPeriod");
ps->wmm_tep = (WMM_TPFUNC)GetProcAddress(ps->wmm, "timeEndPeriod");