Sebastian Lackner : msxml3: Fix incorrect size argument of FormatMessageW.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 2 08:51:50 CST 2015
Module: wine
Branch: master
Commit: 76a09f4e2983fa925757bdf3d9d6f5e8ea2a36c4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=76a09f4e2983fa925757bdf3d9d6f5e8ea2a36c4
Author: Sebastian Lackner <sebastian at fds-team.de>
Date: Sat Feb 28 19:58:06 2015 +0100
msxml3: Fix incorrect size argument of FormatMessageW.
---
dlls/msxml3/saxreader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c
index 5061413..3b5bd7c 100644
--- a/dlls/msxml3/saxreader.c
+++ b/dlls/msxml3/saxreader.c
@@ -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';
More information about the wine-cvs
mailing list