diff options
author | Greg Kaiser <gkaiser@google.com> | 2019-01-24 15:37:22 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-01-24 15:37:22 -0800 |
commit | 70d3b909d495e3856e7ef393711b3f3df5e39256 (patch) | |
tree | f5e5c3cb41cbee87ae1e2bdc6b7d1dd12061e72e | |
parent | 438eeed27030568e950918d2c7b2577ed615ddd7 (diff) | |
parent | c73b2761d70d37e67985ee56577e01a1190d8300 (diff) | |
download | sdk-70d3b909d495e3856e7ef393711b3f3df5e39256.tar.gz |
Merge "find_java2: Fix array size calculation" am: 1400d85340
am: c73b2761d7
Change-Id: If2c68d0743444210ce3b9bff0cc30eca3da5b543
-rwxr-xr-x | find_java2/src/utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/find_java2/src/utils.cpp b/find_java2/src/utils.cpp index 7f4aa02bc..7c8c66b67 100755 --- a/find_java2/src/utils.cpp +++ b/find_java2/src/utils.cpp @@ -219,7 +219,7 @@ int execWait(const TCHAR *cmd) { bool getModuleDir(CPath *outDir) {
TCHAR programDir[MAX_PATH];
- int ret = GetModuleFileName(NULL, programDir, sizeof(programDir) * sizeof(TCHAR));
+ int ret = GetModuleFileName(NULL, programDir, sizeof(programDir) / sizeof(programDir[0]));
if (ret != 0) {
CPath dir(programDir);
dir.RemoveFileSpec();
|