OSDN Git Service

Fix an error when the processing result of the file by the prediffer plugin becomes...
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Thu, 22 Jul 2021 07:05:51 +0000 (16:05 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Thu, 22 Jul 2021 07:05:51 +0000 (16:05 +0900)
Src/Common/multiformatText.cpp

index 322b8d4..b474f41 100644 (file)
@@ -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);