From 02b661ecfcc6ddfbeb75b8226690eac5786d6189 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 10 Jul 2014 22:33:55 +0200 Subject: [PATCH] fix end of stream exception when generating makefile --- win32/build/confutils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/win32/build/confutils.js b/win32/build/confutils.js index ce844dcad3..05eaa85165 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -1806,7 +1806,9 @@ function generate_makefile() MFO.Close(); TF = FSO.OpenTextFile("Makefile.objects", 1); - MF.Write(TF.ReadAll()); + if (!TF.AtEndOfStream) { + MF.Write(TF.ReadAll()); + } TF.Close(); MF.Close(); -- 2.40.0