widl: Fix crash when trying to declare a fixed size array with a size_is attribute.
authorRob Shearman <robertshearman@gmail.com>
Tue, 23 Mar 2010 13:33:21 +0000 (13:33 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 23 Mar 2010 16:27:58 +0000 (17:27 +0100)
commit50534b87d0702965339b365258f246d3f6b6501f
tree68426217ddea8edbde63725abf6d2d10cb21337d
parent096b3cd090154cb3e47cbf8e2b635b446238cb8f
widl: Fix crash when trying to declare a fixed size array with a size_is attribute.

In this case type_array_get_conformance will return NULL. The code
here is actually replacing an existing array with an EXPR_VOID
conformance with the specified conformance, so issue an error if
type_array_get_conformance returns NULL or the conformance has already
been defined.
tools/widl/parser.y