Windows: fix bug in getcwd() and add chdir().
authorTed Woodward <ted.woodward@codeaurora.org>
Tue, 12 May 2015 18:47:33 +0000 (18:47 +0000)
committerTed Woodward <ted.woodward@codeaurora.org>
Tue, 12 May 2015 18:47:33 +0000 (18:47 +0000)
commit4744ec6da984f155450683c4aa223678278050a7
treef0f23fb8a2cab71813005814f79ffc845d72fc2b
parentf1ac850e7721a79238e213f2e6624bf8a2f3a7bd
Windows: fix bug in getcwd() and add chdir().

Summary:
GetCurrentDirectory() returns the number of characters copied; 0 is a failure, not a success.

Add implementation for chdir().

Reviewers: zturner

Reviewed By: zturner

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D9300

llvm-svn: 237162
lldb/include/lldb/Host/windows/win32.h
lldb/source/Host/windows/Windows.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp
lldb/source/Target/Platform.cpp