llvm-project/llvm/lib/Support/Windows
Shoaib Meenai 96929fdd42 [Support] Fix FileNameLength passed to SetFileInformationByHandle
The rename_internal function used for Windows has a minor bug where the
filename length is passed as a character count instead of a byte count.
Windows internally ignores this field, but other tools that hook NT
api's may use the documented behavior:

MSDN documentation specifying the size should be in bytes:
https://docs.microsoft.com/en-us/windows/desktop/api/winbase/ns-winbase-_file_rename_info

Patch by Ben Hillis.

Differential Revision: https://reviews.llvm.org/D55624

llvm-svn: 348995
2018-12-13 00:08:25 +00:00
..
COM.inc
DynamicLibrary.inc Move some function declarations out of WindowsSupport.h 2018-06-01 22:23:46 +00:00
Host.inc [Support] Avoid normalization in sys::getDefaultTargetTriple 2018-05-25 20:39:37 +00:00
Memory.inc [Support] Support NetBSD PaX MPROTECT in sys::Memory. 2017-11-16 23:04:44 +00:00
Mutex.inc
Path.inc [Support] Fix FileNameLength passed to SetFileInformationByHandle 2018-12-13 00:08:25 +00:00
Process.inc [Windows] Simplify WindowsSupport.h 2018-11-06 23:39:59 +00:00
Program.inc [Windows] Simplify WindowsSupport.h 2018-11-06 23:39:59 +00:00
RWMutex.inc Report fatal error in the case of out of memory 2018-02-20 05:41:26 +00:00
Signals.inc Move some function declarations out of WindowsSupport.h 2018-06-01 22:23:46 +00:00
ThreadLocal.inc
Threading.inc
Watchdog.inc
WindowsSupport.h [Windows] Simplify WindowsSupport.h 2018-11-06 23:39:59 +00:00
explicit_symbols.inc