Merge "adb: windows: fix adb execute root cmd with no tips"

This commit is contained in:
Josh Gao 2020-01-22 01:37:13 +00:00 committed by Gerrit Code Review
commit 02f535f582

View file

@ -1125,8 +1125,8 @@ static bool adb_root(const char* command) {
return false;
}
fwrite(buf, 1, sizeof(buf) - bytes_left, stdout);
fflush(stdout);
WriteFdExactly(STDOUT_FILENO, buf, sizeof(buf) - bytes_left);
if (cur != buf && strstr(buf, "restarting") == nullptr) {
return true;
}