summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfsfileengine_p.h
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-10-16 18:08:30 +0200
committerJoão Abecasis <joao@trolltech.com>2010-03-23 12:59:33 +0100
commit7986ab58b9a5d0828291c857d3ce86bfa1af4e6e (patch)
treeddfe4c2c06893bfa9b7fe21b2ed05ea9b34c2b5c /src/corelib/io/qfsfileengine_p.h
parent5f3cf10427640b3578c291e93374c04d9122ddb3 (diff)
_close(fd) closes the associated handle and not the other way around
... according to the online MSDN documentation. Hid the cachedFd member in private data under WinCE, since it's never used there. Task-number: QTBUG-9085 Reviewed-by: Zeno Albisser
Diffstat (limited to 'src/corelib/io/qfsfileengine_p.h')
-rw-r--r--src/corelib/io/qfsfileengine_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/io/qfsfileengine_p.h b/src/corelib/io/qfsfileengine_p.h
index d07c3a0b5a..55c779e82a 100644
--- a/src/corelib/io/qfsfileengine_p.h
+++ b/src/corelib/io/qfsfileengine_p.h
@@ -112,7 +112,11 @@ public:
HANDLE fileHandle;
HANDLE mapHandle;
QHash<uchar *, DWORD /* offset % AllocationGranularity */> maps;
+
+#ifndef Q_OS_WINCE
mutable int cachedFd;
+#endif
+
mutable DWORD fileAttrib;
#else
QHash<uchar *, QPair<int /*offset % PageSize*/, size_t /*length + offset % PageSize*/> > maps;