November 18, 2019 7:30 PM, "Henri Verbeet" hverbeet@gmail.com wrote:
What are the returned and requested alignments in that case?
Requested 0x10000, returned 0x20000. No invalid heap offsets are sent to vkd3d_bind_heap_memory(), so the game uses the returned value.
I'm probably missing something, but in that case, why would this patch be needed?
Hitman 2 doesn't check for the error value ~0 in SizeInBytes. Somehow it truncates it to 32 bits, then allocates heaps of size 0xffffffff until the system freezes.