mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Fix silly mistake.
llvm-svn: 20256
This commit is contained in:
parent
96558e2f93
commit
91e04e17a7
@ -86,7 +86,7 @@ static HANDLE RedirectIO(const Path *path, int fd) {
|
||||
sa.bInheritHandle = TRUE;
|
||||
|
||||
h = CreateFile(fname, fd ? GENERIC_WRITE : GENERIC_READ, FILE_SHARE_READ,
|
||||
&sa, fd ? OPEN_EXISTING : CREATE_ALWAYS,
|
||||
&sa, fd == 0 ? OPEN_EXISTING : CREATE_ALWAYS,
|
||||
FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if (h == INVALID_HANDLE_VALUE) {
|
||||
ThrowError(std::string(fname) + ": Can't open file for " +
|
||||
|
Loading…
Reference in New Issue
Block a user