[NEWDEV][SHELL32][SYSSETUP] Improve browse driver folder dialog (#4293)
authorJose Carlos Jesus <zecarlos1957@hotmail.com>
Sun, 27 Nov 2022 15:00:46 +0000 (15:00 +0000)
committerGitHub <noreply@github.com>
Sun, 27 Nov 2022 15:00:46 +0000 (18:00 +0300)
commit45c8e4dcd022fdec232a9644d717bf466ac05f5c
treeeefa9735927bd1fc778fd9b22ef3ebc9b4d78e40
parent015cd2596c817deecd82437792aabbe8ef7ac5b6
[NEWDEV][SHELL32][SYSSETUP] Improve browse driver folder dialog (#4293)

[NEWDEV] Enable OK button in "Browse For Folder" only when driver is found

Implement BrowseCallbackProc() function which sends BFFM_ENABLEOK message
to the browse dialog whether the driver is found in the selected folder.

Pass the search path to the browse dialog depending on the current index
of the drop down combobox. If the index is not set, just get window text.
Then, automatically expand the tree view to the specified path by sending
BFFM_SETSELECTION message.

Also fix a bug in SearchDriverRecursive() where a duplicate backslash
was added to the PathWithPattern string variable.

[SHELL32] Do not add Recycle Bin to the tree view items in FillTreeView()

[SYSSETUP] Add source path to the "Installation Sources" multi-string key

Each time the ProcessSetupInf() is being called, add the source path
to the "Installation Sources" registry key, if it's not added there yet.
The driver search path combobox will be then populated using its value.
dll/win32/newdev/newdev.c
dll/win32/newdev/newdev_private.h
dll/win32/newdev/wizard.c
dll/win32/shell32/wine/brsfolder.c
dll/win32/syssetup/wizard.c