hanchenye-llvm-project/lldb/tools
Ilia K 5a931869d4 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
2015-04-22 15:43:43 +00:00
..
argdumper Don't export a ton of lldb_private symbols from argdumper. 2015-04-01 17:38:08 +00:00
compact-unwind Two fixes for compact unwind decoding for frameless large-stack-size 2015-01-23 01:02:32 +00:00
darwin-debug Fix darwin-debug installation in cmake (OS X) 2015-02-06 18:13:10 +00:00
darwin-threads Fix examine-threads to build for arm64. 2014-11-14 22:58:25 +00:00
debugserver Build fix for building debugserver for ios. 2015-03-17 23:16:42 +00:00
driver Work around lack of %zd printf format specifier in MSVC libs. 2015-03-30 17:46:36 +00:00
install-headers Fixed our install-headers script to set version 2014-07-17 17:26:38 +00:00
lldb-mi MI Refactor CMIUtilSystemWindows::GetExecutablesPath() 2015-04-22 15:43:43 +00:00
lldb-perf Cleanup how we listen for process events by using the broadcaster class name instead of having to catch each process instance as it comes alive. 2014-08-18 21:09:50 +00:00
lldb-server Use non-blocking waitpid in NativeProcessLinux 2015-04-17 14:07:49 +00:00
CMakeLists.txt Merge lldb-platform and lldb-gdbserver into a single binary 2015-02-18 15:39:41 +00:00
Makefile Merge lldb-platform and lldb-gdbserver into a single binary 2015-02-18 15:39:41 +00:00