From 8ff2ac447be6045b00570848f8b9758ce9ff5900 Mon Sep 17 00:00:00 2001 From: vysheng Date: Fri, 7 Mar 2014 02:44:41 +0400 Subject: [PATCH] fix to prev fix --- structures.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/structures.c b/structures.c index 858fb9c..687155e 100644 --- a/structures.c +++ b/structures.c @@ -1486,8 +1486,12 @@ void fetch_encrypted_message_file (struct message_media *M) { M->encr_photo.id = fetch_long(); M->encr_photo.access_hash = fetch_long(); + if (!M->encr_photo.size) { + M->encr_photo.size = fetch_int (); + } else { + fetch_int (); + } M->encr_photo.dc_id = fetch_int(); - M->encr_photo.size = fetch_int(); M->encr_photo.key_fingerprint = fetch_int(); } }