wine/dlls/kernel32
Jinoh Kang bc854efd7c ntdll: Open application manifest files with FILE_SHARE_DELETE.
Today, RtlCreateActivationContext (CreateActCtxW) opens the source
manifest file via NtOpenFile without the FILE_SHARE_DELETE sharing mode.

This causes CreateActCtxW to fail if the source manifest file was
created with the FILE_DELETE_ON_CLOSE flag.  FILE_DELETE_ON_CLOSE is
often used for temporary files that should be automatically deleted
after use, even if the creator process crashes.

Fix this by specifying FILE_SHARE_DELETE for sharing mode when opening
the source manifest or module file.  This allows the source manifest or
module file to be marked as deleted while it is open.

Note that concurrent deletion is not an issue for the following reasons:

- The ability to read from an open file handle is unaffected by deletion
  of the corresponding file's name.

- RtlCreateActivationContext does not open the source manifest or module
  file by the given filename (lpSource) more than once.
2023-03-20 17:11:10 +01:00
..
tests ntdll: Open application manifest files with FILE_SHARE_DELETE. 2023-03-20 17:11:10 +01:00
atom.c kernel32: Null-terminate the atom names passed to NtAddAtom. 2022-11-04 19:23:55 +01:00
comm.c
computername.c
console.c
debugger.c
file.c
heap.c kernel32: Return success from GlobalReAlloc with locked HGLOBAL pointer. 2022-11-22 18:27:31 +01:00
kernel32.spec kernelbase: Implement DiscardVirtualMemory(). 2023-03-08 17:49:00 +01:00
kernel_main.c
kernel_private.h
locale.c kernel32: Fix GetCurrencyFormatA when input length is 0. 2023-03-08 20:05:14 +01:00
lzexpand.c
Makefile.in
module.c
path.c kernel32: Use MoveFileWithProgress() to partially implement MoveFileTransacted(), 2023-01-27 21:55:34 +01:00
powermgnt.c
process.c kernel32: Implement GetFirmwareType(). 2023-03-06 11:09:03 +01:00
profile.c kernel32/profile: Trim spaces from section names on load. 2022-11-24 09:27:48 +01:00
resource.c
sync.c
tape.c
thread.c
toolhelp.c
version.c
version.rc
virtual.c
volume.c