mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
[PowerRename] Handle many items w/o crashing and OOM (#26761)
* [PowerRename] Disable AnimatedIcon (check mark) for CheckBox to prevent crashes * [PowerRename] Implement lightweight ExplorerItemsSource/VM
This commit is contained in:
@@ -148,7 +148,7 @@ void MRUListHandler::ParseJson()
|
||||
else
|
||||
{
|
||||
std::vector<std::wstring> temp;
|
||||
for (unsigned int i = 0; i < min(jsonArray.Size(), size); ++i)
|
||||
for (unsigned int i = 0; i < std::min(jsonArray.Size(), size); ++i)
|
||||
{
|
||||
int idx = (oldPushIdx + oldSize - (i + 1)) % oldSize;
|
||||
temp.push_back(std::wstring(jsonArray.GetStringAt(idx)));
|
||||
|
||||
Reference in New Issue
Block a user