Commit 919d9690 authored by Alexandre Julliard's avatar Alexandre Julliard

regsvr32: FormatMessage() now reports ERROR_NO_WORK_DONE error for empty string.

parent d9884c93
......@@ -51,11 +51,10 @@ static void WINAPIV output_write(UINT id, ...)
}
__ms_va_start(va_args, id);
SetLastError(NO_ERROR);
len = FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ALLOCATE_BUFFER,
fmt, 0, 0, (LPWSTR)&str, 0, &va_args);
__ms_va_end(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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment