diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_profile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_profile.c b/src/lj_profile.c index 01367014..c7e53963 100644 --- a/src/lj_profile.c +++ b/src/lj_profile.c | |||
@@ -266,7 +266,7 @@ static void profile_timer_start(ProfileState *ps) | |||
266 | { | 266 | { |
267 | #if LJ_TARGET_WINDOWS | 267 | #if LJ_TARGET_WINDOWS |
268 | if (!ps->wmm) { /* Load WinMM library on-demand. */ | 268 | if (!ps->wmm) { /* Load WinMM library on-demand. */ |
269 | ps->wmm = LoadLibraryA("winmm.dll"); | 269 | ps->wmm = LoadLibraryExA("winmm.dll", NULL, 0); |
270 | if (ps->wmm) { | 270 | if (ps->wmm) { |
271 | ps->wmm_tbp = (WMM_TPFUNC)GetProcAddress(ps->wmm, "timeBeginPeriod"); | 271 | ps->wmm_tbp = (WMM_TPFUNC)GetProcAddress(ps->wmm, "timeBeginPeriod"); |
272 | ps->wmm_tep = (WMM_TPFUNC)GetProcAddress(ps->wmm, "timeEndPeriod"); | 272 | ps->wmm_tep = (WMM_TPFUNC)GetProcAddress(ps->wmm, "timeEndPeriod"); |