msxml3: Fix incorrect size argument of FormatMessageW.

oldstable
Sebastian Lackner 2015-02-28 19:58:06 +01:00 committed by Alexandre Julliard
parent 8d52f09646
commit 76a09f4e29
1 changed files with 1 additions and 1 deletions

View File

@ -668,7 +668,7 @@ static void format_error_message_from_id(saxlocator *This, HRESULT hr)
{
WCHAR msg[1024];
if(!FormatMessageW(FORMAT_MESSAGE_FROM_SYSTEM,
NULL, hr, 0, msg, sizeof(msg), NULL))
NULL, hr, 0, msg, sizeof(msg)/sizeof(msg[0]), NULL))
{
FIXME("MSXML errors not yet supported.\n");
msg[0] = '\0';