diff options
author | Greg Kaiser <gkaiser@google.com> | 2019-01-24 15:31:51 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-01-24 15:31:51 -0800 |
commit | c73b2761d70d37e67985ee56577e01a1190d8300 (patch) | |
tree | f5e5c3cb41cbee87ae1e2bdc6b7d1dd12061e72e | |
parent | fd2a17c268e593d0a97fffb61e95597e3d7f82bf (diff) | |
parent | 1400d853403a4359389d92fb73bbda0e62f700ad (diff) | |
download | sdk-c73b2761d70d37e67985ee56577e01a1190d8300.tar.gz |
Merge "find_java2: Fix array size calculation"
am: 1400d85340
Change-Id: Ifaf8d2dd36565eaf400162604cde10f6d063e2ff
-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();
|