Sweden-Number/dlls/kernelbase
Arkadiusz Hiler f6144283a6 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>
(cherry picked from commit e51ae86937)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
2021-07-14 22:58:02 +02:00
..
tests kernelbase: Use wide-char string literals. 2020-11-26 12:36:53 +01:00
Makefile.in include: Use proper dllimports for kernel32 functions. 2020-11-24 18:41:13 +01:00
collation.c
console.c kernelbase: Remove no longer needed console handle mapping. 2020-12-01 19:50:30 +01:00
debug.c include: Use proper dllimports for kernel32 functions. 2020-11-24 18:41:13 +01:00
digitmap.c
file.c kernelbase: Convert DOS to NT path for FileRenameInfo in SetFileInformationByHandle. 2021-06-30 01:03:34 +02:00
kernelbase.h kernelbase: Remove no longer needed console handle mapping. 2020-12-01 19:50:30 +01:00
kernelbase.rc
kernelbase.rgs make_unicode: Use codepage 949 to add default mappings to codepage 20949. 2021-05-18 00:24:26 +02:00
kernelbase.spec ntdll: Implement a no-op __chkstk for arm64. 2020-12-21 16:55:53 +01:00
loader.c kernelbase: Align stack in GetProcAddress() on x64. 2020-10-27 20:30:31 +01:00
locale.c kernelbase: Accept LINGUISTIC_IGNOREDIACRITIC & SORT_DIGITSASNUMBERS in CompareStringEx(). 2021-06-30 00:10:56 +02:00
main.c kernelbase: Copy MulDiv() implementation instead of forwarding. 2020-11-13 13:18:53 +01:00
memory.c kernelbase: Implement VirtualAlloc2. 2020-10-26 20:35:42 +01:00
path.c kernelbase: Use wide-char string literals. 2020-11-26 12:36:53 +01:00
process.c kernelbase: Remove no longer needed console handle mapping. 2020-12-01 19:50:30 +01:00
registry.c kernelbase: Use wide-char string literals. 2020-11-26 12:36:53 +01:00
security.c kernelbase: Implement CreateRestrictedToken(). 2020-09-23 15:58:45 +02:00
string.c
sync.c kernelbase: Wait directly on console handles. 2020-11-10 17:19:44 +01:00
thread.c ntdll: Reimplement FLS data management on top of up to date structures. 2020-10-08 12:40:29 +02:00
version.c kernelbase: Fix GetFileVersionInfo*() crashes with malformed resources. 2021-07-14 22:58:02 +02:00
volume.c kernelbase: Use wide-char string literals. 2020-11-26 12:36:53 +01:00