msxml3: Fix incorrect size argument of FormatMessageW.
This commit is contained in:
parent
8d52f09646
commit
76a09f4e29
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue