Alexandre Julliard : net: FormatMessage() now reports ERROR_NO_WORK_DONE error for empty string.
Alexandre Julliard
julliard at winehq.org
Wed May 13 16:29:54 CDT 2020
Module: wine
Branch: master
Commit: 972ec1ac20811c45fc4c18b8d148b56c8c431d82
URL: https://source.winehq.org/git/wine.git/?a=commit;h=972ec1ac20811c45fc4c18b8d148b56c8c431d82
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed May 13 22:06:46 2020 +0200
net: FormatMessage() now reports ERROR_NO_WORK_DONE error for empty string.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/net/net.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/programs/net/net.c b/programs/net/net.c
index ae38c3a8a6..0f43e8a973 100644
--- a/programs/net/net.c
+++ b/programs/net/net.c
@@ -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);
More information about the wine-cvs
mailing list