From e44d626b32c534cace3a54d54778dfa9cf3599c9 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 28 Feb 2015 11:12:19 +0000 Subject: Variables: -Minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@12285 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Variables/src/parse_system.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'plugins/Variables/src/parse_system.cpp') diff --git a/plugins/Variables/src/parse_system.cpp b/plugins/Variables/src/parse_system.cpp index b17266b807..ab94f0dca0 100644 --- a/plugins/Variables/src/parse_system.cpp +++ b/plugins/Variables/src/parse_system.cpp @@ -725,11 +725,6 @@ static TCHAR *parseTextFile(ARGUMENTSINFO *ai) } while ((totalReadSz < fileSz) && (readSz > 0)); - if (linePos < 0) { - CloseHandle(hFile); - mir_free(pBuf); - return NULL; - } if (SetFilePointer(hFile, linePos, NULL, FILE_BEGIN) != linePos) { CloseHandle(hFile); mir_free(pBuf); -- cgit v1.2.3