https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7b9269fc8ed77ec42e326…
commit 7b9269fc8ed77ec42e32695a5e184adff41557ac
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sun Jan 16 14:51:29 2022 +0100
Commit: Thomas Csovcsity <thc.fr13nd(a)gmail.com>
CommitDate: Sun Jun 19 13:06:27 2022 +0200
[WINESYNC] reg: FormatMessage() now reports ERROR_NO_WORK_DONE error for empty
string.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id f81d15beb690c5e08c5995b90aec8015218bee55 by Alexandre Julliard
<julliard(a)winehq.org>
---
base/applications/cmdutils/reg/reg.c | 3 +--
sdk/tools/winesync/reg.cfg | 7 +++++++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/base/applications/cmdutils/reg/reg.c b/base/applications/cmdutils/reg/reg.c
index 21a08615531..22e54c069c1 100644
--- a/base/applications/cmdutils/reg/reg.c
+++ b/base/applications/cmdutils/reg/reg.c
@@ -132,10 +132,9 @@ static void output_formatstring(const WCHAR *fmt, __ms_va_list
va_args)
WCHAR *str;
DWORD len;
- SetLastError(NO_ERROR);
len = FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ALLOCATE_BUFFER,
fmt, 0, 0, (WCHAR *)&str, 0, &va_args);
- if (len == 0 && GetLastError() != NO_ERROR)
+ if (len == 0 && GetLastError() != ERROR_NO_WORK_DONE)
{
WINE_FIXME("Could not format string: le=%u, fmt=%s\n", GetLastError(),
wine_dbgstr_w(fmt));
return;
diff --git a/sdk/tools/winesync/reg.cfg b/sdk/tools/winesync/reg.cfg
new file mode 100644
index 00000000000..006dabe76f1
--- /dev/null
+++ b/sdk/tools/winesync/reg.cfg
@@ -0,0 +1,7 @@
+directories:
+ programs/reg: base/applications/cmdutils/reg
+ programs/reg/tests: modules/rostests/winetests/reg
+files:
+ programs/reg/resource.h: base/applications/cmdutils/reg/resource.h
+tags:
+ wine: f81d15beb690c5e08c5995b90aec8015218bee55