mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:23:07 +00:00
[WINESYNC] reg: Use is_switch() where possible.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id ab94653e8bb093b88406f7c509c7157ac7033f28 by Hugh McMaster <hugh.mcmaster@outlook.com>
This commit is contained in:
parent
bcb87edb6a
commit
fa84e69673
4 changed files with 5 additions and 13 deletions
|
@ -361,13 +361,7 @@ static HANDLE get_file_handle(WCHAR *filename, BOOL overwrite_file)
|
|||
|
||||
static BOOL is_overwrite_switch(const WCHAR *s)
|
||||
{
|
||||
if (lstrlenW(s) > 2)
|
||||
return FALSE;
|
||||
|
||||
if ((s[0] == '/' || s[0] == '-') && (s[1] == 'y' || s[1] == 'Y'))
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
return is_switch(s, 'y');
|
||||
}
|
||||
|
||||
int reg_export(int argc, WCHAR *argv[])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue