mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 19:52:59 +00:00
[SETUPLIB][USETUP] Move IsValidPath() back into setuplib for reusability (#7186)
Reverts the IsValidPath() move done in commit 9c64b57dc
.
- Turn IsValidPath() into a IsValidInstallDirectory() helper function
available in the setuplib, so that it can also be used in the GUI setup.
- Introduce a IS_VALID_INSTALL_PATH_CHAR() macro.
This commit is contained in:
parent
a532a68d40
commit
785cc21598
3 changed files with 58 additions and 49 deletions
|
@ -177,6 +177,13 @@ InitSystemPartition(
|
|||
_In_opt_ PFSVOL_CALLBACK FsVolCallback,
|
||||
_In_opt_ PVOID Context);
|
||||
|
||||
#define IS_VALID_INSTALL_PATH_CHAR(c) \
|
||||
(iswalnum(c) || (c) == L'.' || (c) == L'\\' || (c) == L'-' || (c) == L'_')
|
||||
|
||||
BOOLEAN
|
||||
IsValidInstallDirectory(
|
||||
_In_ PCWSTR InstallDir);
|
||||
|
||||
NTSTATUS
|
||||
InitDestinationPaths(
|
||||
IN OUT PUSETUP_DATA pSetupData,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue