Skip to content

Commit 5119135

Browse files
committed
mapi_lib: unbreak conversion from HTML
Fixes: gromox-2.42-65-g4024441ec
1 parent 7b939ca commit 5119135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mapi/html.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ ec_error_t html_to_rtf(const void *pbuff_in, size_t length, cpid_t cpid,
10841084
return ecMAPIOOM;
10851085
else if (errno == EINVAL)
10861086
return ecInvalidParam;
1087-
else
1087+
else if (errno != 0)
10881088
return ecError;
10891089
auto ret = html_init_writer(&writer);
10901090
if (ret != ecSuccess)

0 commit comments

Comments
 (0)