https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9cf114d7896097d8f08ed…
commit 9cf114d7896097d8f08ed99c28deae17b631d5e3
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sun Jan 16 21:06:06 2022 +0100
Commit: Thomas Csovcsity <thc.fr13nd(a)gmail.com>
CommitDate: Sun Jun 19 13:06:32 2022 +0200
[WINESYNC] reg: Print additional help messages when syntax is invalid.
Signed-off-by: Hugh McMaster <hugh.mcmaster(a)outlook.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 010cb1b4057550b2eb6c371db5ba5a8d11ef337e by Hugh McMaster
<hugh.mcmaster(a)outlook.com>
---
base/applications/cmdutils/reg/add.c | 3 ++-
base/applications/cmdutils/reg/delete.c | 3 ++-
base/applications/cmdutils/reg/query.c | 3 ++-
sdk/tools/winesync/reg.cfg | 2 +-
4 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/base/applications/cmdutils/reg/add.c b/base/applications/cmdutils/reg/add.c
index d94789ad484..4b50a13b975 100644
--- a/base/applications/cmdutils/reg/add.c
+++ b/base/applications/cmdutils/reg/add.c
@@ -273,6 +273,7 @@ int reg_add(int argc, WCHAR *argvW[])
return run_add(root, path, value_name, value_empty, type, separator, data, force);
invalid:
- output_message(STRING_INVALID_CMDLINE);
+ output_message(STRING_INVALID_SYNTAX);
+ output_message(STRING_FUNC_HELP, wcsupr(argvW[1]));
return 1;
}
diff --git a/base/applications/cmdutils/reg/delete.c
b/base/applications/cmdutils/reg/delete.c
index 239bbbc672b..f1b29e6f3a2 100644
--- a/base/applications/cmdutils/reg/delete.c
+++ b/base/applications/cmdutils/reg/delete.c
@@ -163,6 +163,7 @@ int reg_delete(int argc, WCHAR *argvW[])
return run_delete(root, path, key_name, value_name, value_empty, value_all, force);
invalid:
- output_message(STRING_INVALID_CMDLINE);
+ output_message(STRING_INVALID_SYNTAX);
+ output_message(STRING_FUNC_HELP, wcsupr(argvW[1]));
return 1;
}
diff --git a/base/applications/cmdutils/reg/query.c
b/base/applications/cmdutils/reg/query.c
index 76f12b4a2d3..d2a7968fa0b 100644
--- a/base/applications/cmdutils/reg/query.c
+++ b/base/applications/cmdutils/reg/query.c
@@ -373,6 +373,7 @@ int reg_query(int argc, WCHAR *argvW[])
return run_query(root, path, key_name, value_name, value_empty, recurse);
invalid:
- output_message(STRING_INVALID_CMDLINE);
+ output_message(STRING_INVALID_SYNTAX);
+ output_message(STRING_FUNC_HELP, wcsupr(argvW[1]));
return 1;
}
diff --git a/sdk/tools/winesync/reg.cfg b/sdk/tools/winesync/reg.cfg
index 540e93ecac6..af152700ed8 100644
--- a/sdk/tools/winesync/reg.cfg
+++ b/sdk/tools/winesync/reg.cfg
@@ -4,4 +4,4 @@ directories:
files:
programs/reg/resource.h: base/applications/cmdutils/reg/resource.h
tags:
- wine: a47829e13d639831ab9f36ba4592b840259e6f80
+ wine: 010cb1b4057550b2eb6c371db5ba5a8d11ef337e