mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
regedit: FormatMessage() now reports ERROR_NO_WORK_DONE error for empty string.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f81d15beb6
commit
d9884c930f
1 changed files with 1 additions and 2 deletions
|
@ -55,10 +55,9 @@ static void output_formatstring(const WCHAR *fmt, __ms_va_list va_args)
|
||||||
WCHAR *str;
|
WCHAR *str;
|
||||||
DWORD len;
|
DWORD len;
|
||||||
|
|
||||||
SetLastError(NO_ERROR);
|
|
||||||
len = FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ALLOCATE_BUFFER,
|
len = FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ALLOCATE_BUFFER,
|
||||||
fmt, 0, 0, (WCHAR *)&str, 0, &va_args);
|
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));
|
WINE_FIXME("Could not format string: le=%u, fmt=%s\n", GetLastError(), wine_dbgstr_w(fmt));
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue