fix crash
Change-Id: I65be72b5cd8c0679fb328a78eb4016e2c89ec9b0
This commit is contained in:
parent
55e6e7dc4f
commit
137c9f41c4
@ -26,7 +26,7 @@ LOCAL_MODULE := recovery
|
||||
|
||||
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
||||
|
||||
RECOVERY_VERSION := ClockworkMod Recovery v4.0.1.0
|
||||
RECOVERY_VERSION := ClockworkMod Recovery v4.0.1.4
|
||||
LOCAL_CFLAGS += -DRECOVERY_VERSION="$(RECOVERY_VERSION)"
|
||||
RECOVERY_API_VERSION := 2
|
||||
LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
|
||||
|
@ -318,7 +318,7 @@ static void ensure_directory(const char* dir) {
|
||||
typedef int (*nandroid_restore_handler)(const char* backup_file_image, const char* backup_path, int callback);
|
||||
|
||||
static int unyaffs_wrapper(const char* backup_file_image, const char* backup_path, int callback) {
|
||||
return unyaffs(backup_file_image, backup_path, callback);
|
||||
return unyaffs(backup_file_image, backup_path, callback ? yaffs_callback(path) : NULL);
|
||||
}
|
||||
|
||||
static int tar_extract_wrapper(const char* backup_file_image, const char* backup_path, int callback) {
|
||||
|
Loading…
Reference in New Issue
Block a user