Skip to content

Commit

Permalink
Desktop icons view v1.0.2 (#1163)
Browse files Browse the repository at this point in the history
* Fixed applying the mod on startup on Windows 10.
  • Loading branch information
m417z authored Oct 27, 2024
1 parent 8195a02 commit 4accdef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions mods/desktop-icons-view.wh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @id desktop-icons-view
// @name Desktop icons view
// @description Change desktop icons view to list, details, small icons, or tiles
// @version 1.0.1
// @version 1.0.2
// @author m417z
// @github https://github.com/m417z
// @twitter https://twitter.com/m417z
Expand Down Expand Up @@ -101,7 +101,13 @@ bool IsFolderViewWnd(HWND hWnd) {
}

HWND hParentWnd2 = GetAncestor(hParentWnd, GA_PARENT);
if (!hParentWnd2 || hParentWnd2 != GetShellWindow()) {
if (!hParentWnd2) {
return false;
}

if ((!GetClassName(hParentWnd2, buffer, ARRAYSIZE(buffer)) ||
_wcsicmp(buffer, L"Progman")) &&
hParentWnd2 != GetShellWindow()) {
return false;
}

Expand Down

0 comments on commit 4accdef

Please sign in to comment.