summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rwxr-xr-xsrc/format/dex/dex.c6
2 files changed, 6 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 647cb42..cb8407c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
15-10-01 Cyrille Bagard <nocbos@gmail.com>
+ * src/format/dex/dex.c:
+ Provide the real number of loaded classes instead of 0.
+
+15-10-01 Cyrille Bagard <nocbos@gmail.com>
+
* plugins/mobicore/mclf.c:
* src/analysis/variable.c:
* src/arch/dalvik/decomp/invoke.c:
diff --git a/src/format/dex/dex.c b/src/format/dex/dex.c
index 35ffe47..afd9db1 100755
--- a/src/format/dex/dex.c
+++ b/src/format/dex/dex.c
@@ -514,11 +514,7 @@ char *_g_data_type_to_string(const GDataType *type, bool simple)
size_t g_dex_format_count_classes(const GDexFormat *format)
{
- return 0;
-
-#if 0
- return format->classes_count;
-#endif
+ return format->header.class_defs_size;
}