From: Takashi Sawanaka Date: Thu, 22 Jul 2021 07:05:51 +0000 (+0900) Subject: Fix an error when the processing result of the file by the prediffer plugin becomes... X-Git-Tag: v2.16.14~32 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ca5ffc0a410eeaaa146697831a04fe9ff895b638;p=winmerge-jp%2Fwinmerge-jp.git Fix an error when the processing result of the file by the prediffer plugin becomes 0 bytes. --- diff --git a/Src/Common/multiformatText.cpp b/Src/Common/multiformatText.cpp index 322b8d494..b474f41b5 100644 --- a/Src/Common/multiformatText.cpp +++ b/Src/Common/multiformatText.cpp @@ -435,6 +435,7 @@ const TCHAR *storageForPlugins::GetDataFileAnsi() GetDestFileName(); TFile fileOut(m_tempFilenameDst); fileOut.setSize(textForeseenSize); + if (textForeseenSize > 0) { SharedMemory shmOut(fileOut, SharedMemory::AM_WRITE);