@diapolo That would zero out the entire buffer, which is not necessary here. 

I see though that we don't check the output of FormatMessageA - which can fail, itself. We should probably set a default message (like 'Unknown') in case it fails.