summaryrefslogtreecommitdiffstats
path: root/src/msvc_helper-win32.cc
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit+github@google.com>2022-02-18 14:00:07 (GMT)
committerDavid 'Digit' Turner <digit+github@google.com>2022-02-18 14:01:08 (GMT)
commit9116613e39ba4e18f50494e97eb968a874effdcf (patch)
treee89406664a3d9d20b01a9cef4333e102ce106898 /src/msvc_helper-win32.cc
parentf404f0059d71c8c86da7b56c48794266b5befd10 (diff)
downloadNinja-9116613e39ba4e18f50494e97eb968a874effdcf.zip
Ninja-9116613e39ba4e18f50494e97eb968a874effdcf.tar.gz
Ninja-9116613e39ba4e18f50494e97eb968a874effdcf.tar.bz2
Fix ReadFile() handle leak on read error on Windows.
Small change to fix a file handle leak in case of error. Also return -EIO instead of -1 to signal read errors, since it is more consistent with what is happening here.
Diffstat (limited to 'src/msvc_helper-win32.cc')
0 files changed, 0 insertions, 0 deletions