Skip to content

Conversation

@whindsaks
Copy link
Contributor

_ILIsEqualSimple just does a memcmp and that does not work for all items. Using a corrected version of ILIsEqual makes it much better at matching items. As a bonus, this also fixes detection of deleted folders (from SHChangeNotify notifications) in Explorer/DefView automatically without having to manually refresh.

Notes:

  • Empty BROWSEINFO::pidlRoot initializes the dialog like Windows.
  • Adds support for BIF_NOTRANSLATETARGETS on XP+.

_ILIsEqualSimple just does a memcmp and that does not work for all items
@whindsaks whindsaks added enhancement For PRs with an enhancement/new feature. bugfix For bugfix PRs. shell All PR's related to the shell (and shell extensions) labels Nov 10, 2024
@binarymaster
Copy link
Member

As a bonus, this also fixes detection of deleted folders (from SHChangeNotify notifications) in Explorer/DefView automatically without having to manually refresh.

Can be potentially linked to CORE-13950.

#define PT_FOLDERTYPEMASK 0x70
#define PT_DESKTOP_REGITEM 0x1F // => SHDID_ROOT_REGITEM
#define PT_COMPUTER_REGITEM 0x2E // => SHDID_COMPUTER_OTHER
#define PT_COMPUTER_REGITEM 0x2E // => SHDID_COMPUTER_?
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you mean, any of the SHDID_COMPUTER_* defines?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I mean more research is required about the drive letter items. Specifically drive letters which failed GetDriveType when they were created vs actual regitems (Control panel etc in this folder). This will happen when SHGDFIL_DESCRIPTIONID gets implemented.

@whindsaks whindsaks requested a review from HBelusca November 12, 2024 10:44
@whindsaks whindsaks merged commit 6d10925 into reactos:master Nov 16, 2024
34 checks passed
@whindsaks whindsaks deleted the SHBrowseForFolderSetExpanded branch November 16, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix For bugfix PRs. enhancement For PRs with an enhancement/new feature. shell All PR's related to the shell (and shell extensions)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants