From c9cf46fa4649675a1a4d46051cdec72c1dec19e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Thu, 20 Apr 2017 14:05:40 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@455 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/io/pifile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src_main/io/pifile.cpp b/src_main/io/pifile.cpp index 07d4b9d9..45f43c09 100755 --- a/src_main/io/pifile.cpp +++ b/src_main/io/pifile.cpp @@ -319,6 +319,7 @@ void PIFile::flush() { void PIFile::seek(llong position) { if (isClosed()) return; + if (position == pos()) return; _fseek_call_(fd, position, SEEK_SET); clearerr(fd); }