mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 16:43:38 +00:00
net: 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
88c34b39ed
commit
972ec1ac20
|
@ -59,9 +59,8 @@ static int output_vprintf(const WCHAR* fmt, __ms_va_list va_args)
|
|||
WCHAR str[8192];
|
||||
int len;
|
||||
|
||||
SetLastError(NO_ERROR);
|
||||
len = FormatMessageW(FORMAT_MESSAGE_FROM_STRING, fmt, 0, 0, str, ARRAY_SIZE(str), &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));
|
||||
else
|
||||
output_write(str, len);
|
||||
|
|
Loading…
Reference in a new issue