Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bookmarks sort issue #85

Merged
merged 1 commit into from
Feb 13, 2019
Merged

Fix bookmarks sort issue #85

merged 1 commit into from
Feb 13, 2019

Conversation

AskePit
Copy link

@AskePit AskePit commented Nov 20, 2017

Hello!
I'm a member of the Pinguem.ru competition on finding errors in open source projects.
I found an issue with Explorer++ bookmarks where you're not able to sort already bookmarked entities. To reproduce the bug follow these steps:

  • Bookmark random directories in your file system either via Ctrl+D shortcut either by executing Bookmarks -> Bookmark This Tab... command.
  • Goto Manage Bookmarks dialog window either via Ctrl+B either by executing Bookmarks -> Manage Bookmarks... command.
  • Try to sort entities you've just added through Views -> Sort -> Sort by [sort-criteria] commands. It does nothing — entities are shown in order as they were added.

Solution is simple — there was a typo which was succesfully found by PVS-Studio analyzer:

  • V537 Consider reviewing the correctness of 'BookmarkItem1' item's usage. bookmarkhelper.cpp 535
  • V537 Consider reviewing the correctness of 'BookmarkItem1' item's usage. bookmarkhelper.cpp 552
  • V537 Consider reviewing the correctness of 'BookmarkItem1' item's usage. bookmarkhelper.cpp 569
  • V537 Consider reviewing the correctness of 'BookmarkItem1' item's usage. bookmarkhelper.cpp 589
  • V537 Consider reviewing the correctness of 'BookmarkItem1' item's usage. bookmarkhelper.cpp 612
  • V537 Consider reviewing the correctness of 'BookmarkItem1' item's usage. bookmarkhelper.cpp 638

@@ -77,6 +77,7 @@ m_hContainer(hwnd)
m_hActiveListView = NULL;
m_hTabFont = NULL;
m_hNextClipboardViewer = NULL;
m_hLanguageModule = NULL;
Copy link
Author

Choose a reason for hiding this comment

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

I had a crash without this line so I'll leave it here as well although it has nothing common with the problem in the topic.

@derceg
Copy link
Owner

derceg commented Jan 30, 2018

Hi @AskePit, the changes look good. One small change: could you move the m_hLanguageModule change out into a separate pull request? That will ensure that this pull request only contains the modifications necessary to fix the bookmark sorting issue.

@derceg derceg merged commit ee2322e into derceg:master Feb 13, 2019
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.

None yet

2 participants