Commit Graph

36 Commits

Author SHA1 Message Date
Gijs Vermeulen 002a19599b kernel32: Add DECLSPEC_HOTPATCH to SizeofResource().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=28140
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-02 19:25:18 +02:00
Jon Doron ba9f3dc198 kernel32: Fix BeginUpdateResource structure layout.
The utility muirct.exe for some reason accesses the opaque
HANDLE that is returned by BeginUpdateResource, it assumes
a certain structure in which (on 32bit systems) there is a
pointer to the wide repesentation of the file name in offset
0x18 (0x30 on 64bit).

Signed-off-by: Jon Doron <arilou@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 14:59:48 +02:00
David Collett ea640e1aa7 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>
2017-11-23 21:17:06 +01:00
Nikolay Sivov fdda480df5 kernel32: Fix writing resource section as a last section in UpdateResource(). 2015-01-28 21:30:01 +01:00
Daniel Scharrer 4d05cfe577 kernel32: Add stub implementation for EnumResourceLanguagesEx. 2015-01-27 22:03:17 +01:00
Jon Doron 3c28c0a2eb kernel32: Fix write_raw_resources to support 32 and 64 PE formats. 2015-01-05 16:29:03 +01:00
Sebastian Lackner 270d66efc7 kernel32: Update VirtualAddress of resource section in write_raw_resources. 2014-06-17 09:04:15 +02:00
André Hentschel 8439cc9da4 kernel32: Use boolean return values in boolean functions. 2014-01-30 14:51:37 +01:00
Dmitry Timoshkov e2791cdfb1 include: Make IMAGE_RESOURCE_DIRECTORY_ENTRY match PSDK definition. 2013-04-29 13:33:54 +02:00
Andrew Talbot 1973a808c2 kernel32: Remove unused variables. 2012-11-22 11:55:25 +01:00
Alexandre Julliard 6dc9062086 kernel32: Fix a couple of handle leaks. 2011-05-26 13:28:46 +02:00
Kirill Smelkov d5cb11a45a kernel32: Support deleting resources in UpdateResource. 2010-12-23 17:07:40 +01:00
Andrey Turkin a610fc17d8 kernel32: Enhance EndUpdateResource. 2010-07-22 11:41:41 +02:00
Michael Stefaniuc 02bddd1caf kernel32: Use IS_INTRESOURCE instead of HIWORD to check a resource. 2010-01-26 12:13:48 +01:00
Alexandre Julliard 8268ed9783 kernel32: Do not include 16-bit headers in 32-bit files. 2009-12-30 16:21:56 +01:00
Alexandre Julliard e49c54d288 kernel32: Get rid of the support for 16-bit resources in 32-bit resource functions. 2009-12-29 11:44:41 +01:00
James Hawkins 9b2af10f02 kernel32: Free the resource data if a matching resource exists and we choose not to overwrite the existing resource. 2009-12-17 12:53:39 +01:00
Andrey Turkin 95eb435a33 kernel32: Catch invalid memory accesses in resource enumeration handlers. 2009-10-05 15:55:24 +02:00
Alexandre Julliard 9f28d9a171 kernel32: Cope with an empty resource section in UpdateResource. 2009-09-24 13:10:39 +02:00
Rob Shearman 45ba200f19 kernel32: Fix use of uninitialised nameW and typeW in find_resourceA. 2008-02-29 12:36:55 +01:00
Andrew Talbot 7bce56881f kernel32: Remove unneeded casts. 2007-12-20 10:47:00 +01:00
Michael Stefaniuc ebd1ba807e kernel32: Fix a memory leak. Found by cross referencing Andrew Talbot's list of potential memory leaks with Smatch's view of the same problem. 2007-09-21 12:05:35 +02:00
Dmitry Timoshkov 0aec2623c5 kernel32: Fix some compiler warnings. 2007-09-10 15:29:46 +02:00
Andrew Talbot 6c0ccbc23a kernel32: Cast-qual warning fix. 2007-07-23 11:53:41 +02:00
Dmitry Timoshkov a67b689121 kernel32: Fix compilation warnings in 64-bit mode. 2007-05-23 13:13:54 +02:00
Andrew Talbot fe933b022a kernel32: Exclude unused headers. 2007-05-07 20:34:58 +02:00
Mike McCormack f01707dfc1 kernel32: Merge existing resources in EndUpdateResource. 2007-01-11 12:12:00 +01:00
Mike McCormack 38e27fa9f8 kernel32: Split update_add_resource() into two functions. 2007-01-11 12:09:49 +01:00
Mike McCormack 8f8fecd00e kernel32: Create a simple abstraction for file mappings. 2007-01-11 12:07:40 +01:00
Andrew Talbot e994f88cc2 kernel32: Declare some functions static. 2007-01-10 22:25:41 +01:00
Mike McCormack 4d72d7897f kernel32: Implement EndUpdateResource for the case existing resources are deleted. 2007-01-09 12:22:21 +01:00
Mike McCormack 9196a37201 kernel32: Store resources to be updated in a tree. 2007-01-03 11:54:41 +01:00
Mike McCormack 794dbe4f93 kernel32: Remove incorrect and incomplete implementation of BeginResourceUpdate. 2007-01-02 13:20:21 +01:00
Michael Stefaniuc 8c38b88068 kernel32: Win64 printf format warning fixes. 2006-10-13 12:08:25 +02:00
Andrew Talbot 10a0931ebe kernel32: Cast-qual warnings fix. 2006-09-20 12:23:13 +02:00
Alexandre Julliard 489d87d1e5 kernel32: Renamed the kernel directory to kernel32.
Also get rid of the kernel/messages subdirectory.
2006-09-12 13:34:06 +02:00