diff options
| author | Ilia K <ki.stfu@gmail.com> | 2015-04-22 15:43:43 +0000 |
|---|---|---|
| committer | Ilia K <ki.stfu@gmail.com> | 2015-04-22 15:43:43 +0000 |
| commit | 5a931869d4a370d19d009016ee8ff75cc7583909 (patch) | |
| tree | 460e0f22c0fc6a37999fb81fb4102b03e4162856 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | badf3a6356da078424aeb17edf6af5e333ef9d6c (diff) | |
MI Refactor CMIUtilSystemWindows::GetExecutablesPath()
Summary:
My understanding of the Windows API call GetLastError() is that it should only be checked when ::GetModuleFileName() returns 0 on error.
Otherwise GetExecutablesPath() could return an error despite nLen being valid if GetLastError() was inconsistent.
Patch updates function to only call GetOSLastError() when nLen == 0
Patch from ewan@codeplay.com
Reviewers: EwanCrawford
Subscribers: lldb-commits, deepak2427
Differential Revision: http://reviews.llvm.org/D9154
llvm-svn: 235515
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
