mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
218a7995fe
`GetFinalPathNameByHandleW(,,N,)` returns: - `< N` on success (this value does not include the size of the terminating null character) - `>= N` if buffer is too small (this value includes the size of the terminating null character) So, when `N == Buffer.capacity() - 1`, we need to resize buffer if return value is > `Buffer.capacity() - 2`. Also, we can set `N` to `Buffer.capacity()`. Thus, without this patch `realPathFromHandle()` returns unfilled buffer when length of the final path of the file is equal to `Buffer.capacity()` or `Buffer.capacity() - 1`. Reviewed By: andrewng, amccarth Differential Revision: https://reviews.llvm.org/D86564 |
||
---|---|---|
.. | ||
COM.inc | ||
DynamicLibrary.inc | ||
explicit_symbols.inc | ||
Host.inc | ||
Memory.inc | ||
Path.inc | ||
Process.inc | ||
Program.inc | ||
Signals.inc | ||
Threading.inc | ||
ThreadLocal.inc | ||
Watchdog.inc |