Fix FormatMessageW in PAL
authorJan Vorlicek <janvorli@microsoft.com>
Wed, 1 Apr 2015 23:31:53 +0000 (01:31 +0200)
committerJan Vorlicek <janvorli@microsoft.com>
Wed, 1 Apr 2015 23:48:56 +0000 (01:48 +0200)
commit7c8a58b8d07835f3919478a786fdb188d5a4e2d9
tree33069c3e748f35ae6888897e04552866c24f76e5
parent838807429a0828a839958e3b7d392d65886c8f2e
Fix FormatMessageW in PAL

The function was not properly accessing the Arguments list when the
FORMAT_MESSAGE_ARGUMENT_ARRAY flag was set. The va_list on Linux is
a struct with four members, so indexing Arguments array without
casting it first to a WCHAR** gets completely wrong results.
src/pal/src/misc/fmtmessage.cpp