mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
ContextMenu: Fix complier warnings
This commit is contained in:
parent
f74dba0c03
commit
d6a6810bd5
@ -513,7 +513,7 @@ void ContextMenu::AppendSkinCustomMenu(
|
||||
else
|
||||
{
|
||||
const UINT_PTR id = (index << 16) | (IDM_SKIN_CUSTOMCONTEXTMENU_FIRST + i);
|
||||
InsertMenu(menu, position + 1, MF_BYPOSITION | MF_STRING, id, cTitles[i].c_str());
|
||||
InsertMenu(menu, (UINT)(position + 1), MF_BYPOSITION | MF_STRING, id, cTitles[i].c_str());
|
||||
}
|
||||
|
||||
++position;
|
||||
@ -607,7 +607,7 @@ void ContextMenu::CreateLayoutMenu(HMENU layoutMenu)
|
||||
const auto& layouts = GetRainmeter().m_Layouts;
|
||||
for (size_t i = 0, isize = layouts.size(); i < isize; ++i)
|
||||
{
|
||||
InsertMenu(layoutMenu, i, MF_BYPOSITION, ID_THEME_FIRST + i, layouts[i].c_str());
|
||||
InsertMenu(layoutMenu, (UINT)i, MF_BYPOSITION, ID_THEME_FIRST + i, layouts[i].c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user