From ea6584d42c0a1434a6e8cdc4a32659ee8f308bad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20B=C3=A9ron?= Date: Fri, 15 Aug 2003 03:47:04 +0000 Subject: [PATCH] Fixed command line support. --- programs/regedit/regedit.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/programs/regedit/regedit.c b/programs/regedit/regedit.c index 704b2e32cd0..023abb76fe7 100644 --- a/programs/regedit/regedit.c +++ b/programs/regedit/regedit.c @@ -153,11 +153,14 @@ BOOL ProcessCmdLine(LPSTR lpCmdLine) } } + if (*s && action == ACTION_UNDEF) + action = ACTION_ADD; + if (action == ACTION_UNDEF) return FALSE; return PerformRegAction(action, s); - } +} BOOL PerformRegAction(REGEDIT_ACTION action, LPSTR s) { @@ -235,5 +238,5 @@ BOOL PerformRegAction(REGEDIT_ACTION action, LPSTR s) exit(1); break; } - return 0; + return TRUE; }