mirror of
https://github.com/microsoft/PowerToys
synced 2025-09-02 07:25:10 +00:00
Fix outstanding warning messages (#924)
This commit is contained in:
committed by
Enrico Giordani
parent
6e3587dd43
commit
d284ecdab4
@@ -819,7 +819,7 @@ void FancyZones::HandleVirtualDesktopUpdates(HANDLE fancyZonesDestroyedEvent) no
|
|||||||
const int guidSize = sizeof(GUID);
|
const int guidSize = sizeof(GUID);
|
||||||
std::unordered_map<GUID, bool> temp;
|
std::unordered_map<GUID, bool> temp;
|
||||||
temp.reserve(bufferCapacity / guidSize);
|
temp.reserve(bufferCapacity / guidSize);
|
||||||
for (int i = 0; i < bufferCapacity; i += guidSize) {
|
for (size_t i = 0; i < bufferCapacity; i += guidSize) {
|
||||||
GUID *guid = reinterpret_cast<GUID*>(buffer.get() + i);
|
GUID *guid = reinterpret_cast<GUID*>(buffer.get() + i);
|
||||||
temp[*guid] = true;
|
temp[*guid] = true;
|
||||||
}
|
}
|
||||||
|
@@ -83,7 +83,7 @@ bool SystemMenuHelper::AddItem(PowertoyModuleIface* module, HWND window, const s
|
|||||||
item.fState = MF_UNCHECKED | MF_DISABLED; // Item is disabled by default.
|
item.fState = MF_UNCHECKED | MF_DISABLED; // Item is disabled by default.
|
||||||
item.wID = GenerateItemId();
|
item.wID = GenerateItemId();
|
||||||
item.dwTypeData = const_cast<WCHAR*>(name.c_str());
|
item.dwTypeData = const_cast<WCHAR*>(name.c_str());
|
||||||
item.cch = name.size() + 1;
|
item.cch = (UINT)name.size() + 1;
|
||||||
|
|
||||||
if (InsertMenuItem(systemMenu, GetMenuItemCount(systemMenu) - KNewItemPos, true, &item)) {
|
if (InsertMenuItem(systemMenu, GetMenuItemCount(systemMenu) - KNewItemPos, true, &item)) {
|
||||||
IdMappings[item.wID] = { module, name };
|
IdMappings[item.wID] = { module, name };
|
||||||
|
Reference in New Issue
Block a user