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

[REGEDIT] Implement "Add to favorites" feature #6890

Merged
merged 6 commits into from
May 21, 2024

Conversation

whindsaks
Copy link
Contributor

The ability to go to a favorite and the dialog was already there, just needed to fill in the blanks.

@binarymaster binarymaster changed the title [REGEDIT] Implement the add to favorites feature [REGEDIT] Implement "Add to favorites" feature May 15, 2024
@binarymaster binarymaster added the enhancement For PRs with an enhancement/new feature. label May 15, 2024
base/applications/regedit/framewnd.c Outdated Show resolved Hide resolved
base/applications/regedit/framewnd.c Outdated Show resolved Hide resolved
base/applications/regedit/framewnd.c Outdated Show resolved Hide resolved
return EndDialog(hWnd, err);
}
case IDCANCEL:
return EndDialog(hWnd, ERROR_CANCELLED);
Copy link
Contributor

Choose a reason for hiding this comment

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

Not really useful to return a Win32 error code there, and in the IDOK case above (caller doesn't use that code at all).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know it is not super useful but it costs me nothing so why not?

Copy link
Contributor

Choose a reason for hiding this comment

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

This is in regards to the fact the returned result of the DialogBoxW() call below won't really be used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know the caller does not care at the moment but I have already calculated the error value, it costs me nothing to return it.

base/applications/regedit/framewnd.c Outdated Show resolved Hide resolved
base/applications/regedit/framewnd.c Show resolved Hide resolved
base/applications/regedit/framewnd.c Outdated Show resolved Hide resolved
base/applications/regedit/framewnd.c Outdated Show resolved Hide resolved
base/applications/regedit/framewnd.c Outdated Show resolved Hide resolved
base/applications/regedit/framewnd.c Outdated Show resolved Hide resolved
@whindsaks whindsaks merged commit 2198247 into reactos:master May 21, 2024
34 checks passed
@whindsaks whindsaks deleted the RegeditFavAdd branch May 21, 2024 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement For PRs with an enhancement/new feature.
Projects
None yet
5 participants