Skip to content

Better file sizes in Explorer details v1.5.1#4462

Merged
m417z merged 1 commit into
mainfrom
explorer-details-better-file-sizes-1.5.1
Jun 16, 2026
Merged

Better file sizes in Explorer details v1.5.1#4462
m417z merged 1 commit into
mainfrom
explorer-details-better-file-sizes-1.5.1

Conversation

@m417z

@m417z m417z commented Jun 16, 2026

Copy link
Copy Markdown
Member
  • Fixed the IEC terms option not working in some cases.
  • Fixed slow file list loading with mapped network drives.
  • Excluded msedgewebview2.exe to work around a reported incompatibility with Bitdefender which could cause the Start menu search to load indefinitely.
  • Excluded Windhawk as an additional safety measure to allow disabling the mod if it's stuck on init.

* Fixed the IEC terms option not working in some cases.
* Fixed slow file list loading with mapped network drives.
* Excluded msedgewebview2.exe to work around a reported incompatibility with Bitdefender which could cause the Start menu search to load indefinitely.
* Excluded Windhawk as an additional safety measure to allow disabling the mod if it's stuck on init.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the “Better file sizes in Explorer details” Windhawk mod to v1.5.1, focusing on correctness and robustness around IEC unit formatting and performance when calculating folder sizes on network locations, plus safety exclusions for known-problematic processes.

Changes:

  • Broadened IEC “KiB/MiB/…” formatting support by hooking additional propsys formatting (PSStrFormatByteSizeW in addition to PSStrFormatKBSizeW) and improved buffer-space checks when appending i.
  • Improved folder size resolution behavior for network locations by detecting mapped network drives in addition to UNC paths.
  • Added additional @exclude entries (e.g., msedgewebview2.exe, windhawk.exe) and refreshed mod metadata/documentation strings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +2440 to +2443
int len = wcslen(pwszText);
if (len < 2 || pwszText[len - 1] != 'B') {
return ret;
}
Comment on lines 2479 to 2482
int len = wcslen(pwszText);
if (len < 2 || (size_t)len + 1 > cchText - 1 || pwszText[len - 2] != 'K' ||
pwszText[len - 1] != 'B') {
if (len < 2 || pwszText[len - 2] != 'K' || pwszText[len - 1] != 'B') {
return ret;
}
}

return wcslen(lpBuffer);
return stringLen;
Comment on lines 2736 to 2739
void** ppCxaThrow = FindImportPtr(module, "libc++.dll", "__cxa_throw");
if (!ppCxaThrow) {
wsprintf(errorMsg, L"No __cxa_throw");
return false;
}
Comment on lines +2942 to +2946
auto pPSStrFormatByteSizeW =
(PSStrFormatByteSizeW_t)GetProcAddress(propsysModule, (PCSTR)421);
WindhawkUtils::Wh_SetFunctionHookT(pPSStrFormatByteSizeW,
PSStrFormatByteSizeW_Hook,
&PSStrFormatByteSizeW_Original);
Comment on lines +2948 to +2952
auto pPSStrFormatKBSizeW =
(PSStrFormatKBSizeW_t)GetProcAddress(propsysModule, (PCSTR)422);
WindhawkUtils::Wh_SetFunctionHookT(pPSStrFormatKBSizeW,
PSStrFormatKBSizeW_Hook,
&PSStrFormatKBSizeW_Original);
@m417z m417z merged commit 3379f54 into main Jun 16, 2026
5 checks passed
@m417z m417z deleted the explorer-details-better-file-sizes-1.5.1 branch June 16, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants