Skip to content

Commit

Permalink
[Fix] Compile fix for retro builds.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@21340 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Aug 6, 2024
1 parent ad9123f commit 4709ecf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mptrack/IPCWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ namespace IPCWindow
void UpdateLastUsed()
{
if(ipcWindow)
SetWindowLongPtr(ipcWindow, GWLP_USERDATA, mpt::saturate_cast<LONG_PTR>(GetTickCount64() / 100));
SetWindowLongPtr(ipcWindow, GWLP_USERDATA, mpt::saturate_cast<LONG_PTR>(Util::GetTickCount64() / 100));
}

LRESULT SendIPC(HWND ipcWnd, Function function, mpt::const_byte_span data)
Expand All @@ -159,7 +159,7 @@ namespace IPCWindow

struct EnumWindowState
{
uint64 lastActive = 0;
uintptr_t lastActive = 0;
HWND result = nullptr;
FlagSet<InstanceRequirements> require;
};
Expand Down Expand Up @@ -203,7 +203,7 @@ namespace IPCWindow
return TRUE; // continue
}
}
uint64 lastActive = GetWindowLongPtr(hwnd, GWLP_USERDATA);
uintptr_t lastActive = GetWindowLongPtr(hwnd, GWLP_USERDATA);
if(!state.result || lastActive >= state.lastActive)
{
state.result = hwnd;
Expand Down

0 comments on commit 4709ecf

Please sign in to comment.