From cf5195aa79c4cf75056bdd873e6ba6b7bd6ca36a Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sun, 29 May 2011 18:45:42 -0700 Subject: [PATCH] fix boot image not flashing properly, prevent the error in the future. Change-Id: I6163e5a519ef28e9e9ea12d5a46d525d1d9d8fb2 --- updater/install.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/updater/install.c b/updater/install.c index d23ec64..8d2a5b1 100644 --- a/updater/install.c +++ b/updater/install.c @@ -36,6 +36,8 @@ #include "updater.h" #include "applypatch/applypatch.h" +#include "flashutils/flashutils.h" + #ifdef USE_EXT4 #include "make_ext4fs.h" #endif @@ -698,7 +700,7 @@ Value* WriteRawImageFn(const char* name, State* state, int argc, Expr* argv[]) { goto done; } - if (0 == restore_raw_partition(partition, filename)) + if (0 == restore_raw_partition(NULL, partition, filename)) result = strdup(partition); else result = strdup("");