From 13a6a72b880cf8bc612ae4a7a9674276ede84459 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sat, 27 May 2023 02:02:46 +0200
Subject: [PATCH] windows: SDL_GetTicks64 -> SDL_GetTicks
---
src/core/windows/SDL_immdevice.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/core/windows/SDL_immdevice.c b/src/core/windows/SDL_immdevice.c
index ebea6a9ebbed..570914884dea 100644
--- a/src/core/windows/SDL_immdevice.c
+++ b/src/core/windows/SDL_immdevice.c
@@ -357,7 +357,7 @@ void SDL_IMMDevice_Quit(void)
int SDL_IMMDevice_Get(LPCWSTR devid, IMMDevice **device, SDL_bool iscapture)
{
- const Uint64 timeout = SDL_GetTicks64() + 8000; /* intel's audio drivers can fail for up to EIGHT SECONDS after a device is connected or we wake from sleep. */
+ const Uint64 timeout = SDL_GetTicks() + 8000; /* intel's audio drivers can fail for up to EIGHT SECONDS after a device is connected or we wake from sleep. */
HRESULT ret;
SDL_assert(device != NULL);
@@ -375,7 +375,7 @@ int SDL_IMMDevice_Get(LPCWSTR devid, IMMDevice **device, SDL_bool iscapture)
}
if (ret == E_NOTFOUND) {
- const Uint64 now = SDL_GetTicks64();
+ const Uint64 now = SDL_GetTicks();
if (timeout > now) {
const Uint64 ticksleft = timeout - now;
SDL_Delay(SDL_min(ticksleft, 300)); /* wait awhile and try again. */