Check for non-zero return from fseek
commit3be1b879c9fbe37b71cce3c95ec4a3753a25a641
authorJoão Abecasis <joao@abecasis.name>
Fri, 23 Oct 2009 09:15:56 +0000 (23 11:15 +0200)
committerJoão Abecasis <joao@abecasis.name>
Fri, 23 Oct 2009 13:05:33 +0000 (23 15:05 +0200)
tree0a8c3fcda691a70068484d9c7d9174a846a78516
parentd0fa7d4b30fa34fe2a684c331213528c193da85f
Check for non-zero return from fseek

While POSIX specifies a -1 return on error, on Windows only non-zero is
documented for error conditions. All platforms agree that zero is
returned on success so we check for that instead.

Reviewed-by: Markus Goetz
src/corelib/io/qfsfileengine.cpp