OSDN Git Service

Handle empty buffer in QemuPipeStream::writeFully
authorbohu <bohu@google.com>
Fri, 17 Oct 2014 18:26:36 +0000 (11:26 -0700)
committerbohu <bohu@google.com>
Fri, 17 Oct 2014 18:34:05 +0000 (11:34 -0700)
commit2fe96e18ffeceef46db662824f491c6e5bb3caa9
tree016228d06c5c419994a08f81f151d0de7df2d678
parent52371ec4383b7654497e9f0a0994bae68a6899e9
Handle empty buffer in QemuPipeStream::writeFully

Print error message and return 0 when this happens (and it does happen),
similar to what QemuPipeStream::readFully does.

Change-Id: I14f2f2877e6b22e676d5bfe34a54435220e46127
system/OpenglSystemCommon/QemuPipeStream.cpp