aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/launcher/util/launcher_util.cc
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2017-08-07 11:10:07 +0200
committerGravatar Jakob Buchgraber <buchgr@google.com>2017-08-07 11:22:30 +0200
commit793b409eeae2b42be7fed58251afa87b5733ca4d (patch)
treee931d576f8bfc7b766c69bf3202dad5de2adf0a7 /src/tools/launcher/util/launcher_util.cc
parent242a43449dd44a22857f6ce95f7cc6a7e134d298 (diff)
Windows, sh_bin. launcher: fix manifest path
Fix the path we set in the exe launcher for the RUNFILES_MANIFEST_FILE path. It now uses forward slashes because it's to be consumed by the shell script. This is a follow-up to commit 837e1b3d4859140d29aaa6bbab8fbb008e6d701e Change-Id: Id8331cdcf58adb31ed2b60ebbc57022a0bf32438 PiperOrigin-RevId: 164436539
Diffstat (limited to 'src/tools/launcher/util/launcher_util.cc')
-rw-r--r--src/tools/launcher/util/launcher_util.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/launcher/util/launcher_util.cc b/src/tools/launcher/util/launcher_util.cc
index 610516bcc3..247c7050c5 100644
--- a/src/tools/launcher/util/launcher_util.cc
+++ b/src/tools/launcher/util/launcher_util.cc
@@ -68,7 +68,9 @@ void PrintError(const char* format, ...) {
}
bool DoesFilePathExist(const char* path) {
- DWORD dwAttrib = GetFileAttributes(path);
+ // TODO(laszlocsomor): convert `path` to (const wchar_t*), add longpath-prefix
+ // and use GetFileAttributesW.
+ DWORD dwAttrib = GetFileAttributesA(path);
return (dwAttrib != INVALID_FILE_ATTRIBUTES &&
!(dwAttrib & FILE_ATTRIBUTE_DIRECTORY));