https://issues.dlang.org/show_bug.cgi?id=13541

Marco Leise <marco.le...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marco.le...@gmx.de

--- Comment #1 from Marco Leise <marco.le...@gmx.de> ---
That recursion is really bad. :p

> 1. sysErrorString()'s argument should ONLY be values returned by Windows APIs 
> like GetLastError(), and so this should always succeed.

It should, yes. And that's surely Microsofts stance as well. Yet they state
that 0 is returned on error, so if this was my code I would at least handle
that case and print some generic English message like "Failed to retrieve
WinAPI error message for code 0x123456" instead of an empty string.

--

Reply via email to