am 6a4a33e3: Merge "applypatch: Fix the checking in WriteToPartition()."

* commit '6a4a33e39ea2fa8626335f6b9cccf407c71c0588':
  applypatch: Fix the checking in WriteToPartition().