http://bugs.winehq.org/show_bug.cgi?id=9056
--- Comment #20 from Hans Leidekker hans@it.vu.nl 2007-09-25 11:29:56 ---
Could you please fix wine's FormatMessageA/W to check for NULL lpBuffer?
Working on it ;-)
if( !lpBuffer) { SetLastError( ERROR_INVALID_PARAMETER); return 0; }
My tests thus far show that when FORMAT_MESSAGE_ALLOCATE_BUFFER is specified (like mono does) the API returns ERROR_NOT_ENOUGH_MEMORY in the lpBuffer == NULL case.