Skip to content

Commit

Permalink
[Fix] Fix ANSI builds.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22136 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Nov 10, 2024
1 parent d2713eb commit ea6da13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mptrack/dlg_misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void CModTypeDlg::OnDPIChanged()
using PLOADICONWITHSCALEDOWN = HRESULT(WINAPI *)(HINSTANCE, PCWSTR, int, int, HICON *);
PLOADICONWITHSCALEDOWN LoadIconWithScaleDown = nullptr;
if(comctl32.Bind(LoadIconWithScaleDown, "LoadIconWithScaleDown"))
LoadIconWithScaleDown(NULL, IDI_EXCLAMATION, iconSize, iconSize, &m_warnIcon);
LoadIconWithScaleDown(NULL, MAKEINTRESOURCEW(reinterpret_cast<uintptr_t>(IDI_EXCLAMATION)), iconSize, iconSize, &m_warnIcon);
}
if(!m_warnIcon)
m_warnIcon = reinterpret_cast<HICON>(::LoadImage(NULL, IDI_EXCLAMATION, IMAGE_ICON, iconSize, iconSize, LR_SHARED));
Expand Down

0 comments on commit ea6da13

Please sign in to comment.