kernel32: Adjust data directories in UpdateResource API.
commitea640e1aa7033a694eb8474c8cb69ecbbc160671
authorDavid Collett <david.collett@gmail.com>
Thu, 23 Nov 2017 05:02:55 +0000 (23 16:02 +1100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 23 Nov 2017 20:17:06 +0000 (23 21:17 +0100)
tree6856cd62b817cd212a8237a271ca0002990d9805
parent0592537862c3b3abfcc187bf9f6e2ec9aa09b10a
kernel32: Adjust data directories in UpdateResource API.

When adding resources to a PE file using the UpdateResource API and
the resource section is not the last section (i.e. we had to move
existing sections), ensure any data directory entries pointing into
moved sections is adjusted.

Signed-off-by: David Collett <david.collett@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/kernel32/resource.c