diff options
author | João Abecasis <joao@abecasis.name> | 2009-07-27 17:43:48 +0200 |
---|---|---|
committer | João Abecasis <joao@abecasis.name> | 2009-08-24 19:25:48 +0200 |
commit | b4425cc1ad39879901247fd488825a3f6c30111a (patch) | |
tree | 7054c46330bfe7e877aede4bf75b0ad11db4ad55 /src | |
parent | 6d87a01f2d3108bbee5b9995f20edfc26a01cd57 (diff) |
Reset dangling handle after close on WinCE 5
Reviewed-by: Maurice Kalinowski
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/io/qfsfileengine_win.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/io/qfsfileengine_win.cpp b/src/corelib/io/qfsfileengine_win.cpp index 2fc96700b..a8de17b08 100644 --- a/src/corelib/io/qfsfileengine_win.cpp +++ b/src/corelib/io/qfsfileengine_win.cpp @@ -458,6 +458,9 @@ bool QFSFileEnginePrivate::nativeClose() q->setError(QFile::UnspecifiedError, qt_error_string()); ok = false; } +#ifdef Q_USE_DEPRECATED_MAP_API + fileMapHandle = INVALID_HANDLE_VALUE; +#endif fileHandle = INVALID_HANDLE_VALUE; cachedFd = -1; // gets closed by CloseHandle above |