瀏覽代碼

fixed >64K resource bug.

Nicolas Cannasse 19 年之前
父節點
當前提交
a44b5ea419
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      genswf8.ml

+ 2 - 1
genswf8.ml

@@ -454,8 +454,9 @@ let rec gen_big_string ctx s =
 	let max = 65000 in
 	if len <= max then
 		write ctx (APush [PString s])
-	else begin
+	else begin		
 		write ctx (APush [PString (String.sub s 0 max)]);
+		ctx.opt_push <- false;
 		gen_big_string ctx (String.sub s max (len - max));
 		write ctx AAdd;
 	end