kernelbase: Fix GetFileVersionInfo*() crashes with malformed resources.
commite51ae86937c547124c906fb1d5db7a142af60686
authorArkadiusz Hiler <ahiler@codeweavers.com>
Tue, 2 Mar 2021 17:22:38 +0000 (2 19:22 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 3 Mar 2021 20:54:45 +0000 (3 21:54 +0100)
tree75e498be3850934eb4e32e39e72416da950056c3
parent31fab6705a0425654c620bfd1682480c817905cd
kernelbase: Fix GetFileVersionInfo*() crashes with malformed resources.

Some Unity games ship with an encrypted Assembly-CSharp.dll, including
the resources directory, yet the engine still calls GetFileVersionInfoSizeW()
on those files. This may results in a page fault when trying to find the
version resource and takes the whole process down.

The change fixes crashes when launching Home Behind 2 and Crown Trick.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50075
Signed-off-by: Arkadiusz Hiler <ahiler@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/kernelbase/version.c