Revision a3304489e870555f5d01d02c0252103db2288898 authored by Mitch Curtis on 19 March 2013, 15:45:25 UTC, committed by The Qt Project on 23 March 2013, 13:42:45 UTC
When QTemporaryFile attempts to create a new file in createFileFromTemplate, it fails if the filename exists and is a directory. Windows returns error code 5 (ERROR_ACCESS_DENIED) in this case - rather than ERROR_FILE_EXISTS - which is not handled. This patch handles ERROR_ACCESS_DENIED in addition to the already handled ERROR_FILE_EXISTS, meaning that QTemporaryFile will continue to look for unique names when a directory with the same name exists. Task-number: QTBUG-30058 Change-Id: I42339887d7f5483e3dc6a03a9da15111c350da8f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: David Faure <david.faure@kdab.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
1 parent 0450d81
File | Mode | Size |
---|---|---|
bin | ||
config.tests | ||
dist | ||
doc | ||
examples | ||
lib | ||
mkspecs | ||
qmake | ||
src | ||
tests | ||
tools | ||
util | ||
.gitattributes | -rw-r--r-- | 151 bytes |
.gitignore | -rw-r--r-- | 7.0 KB |
.qmake.conf | -rw-r--r-- | 125 bytes |
.tag | -rw-r--r-- | 12 bytes |
INSTALL | -rw-r--r-- | 692 bytes |
LGPL_EXCEPTION.txt | -rw-r--r-- | 1.2 KB |
LICENSE.FDL | -rw-r--r-- | 22.4 KB |
LICENSE.GPL | -rw-r--r-- | 34.3 KB |
LICENSE.LGPL | -rw-r--r-- | 26.2 KB |
LICENSE.PREVIEW.COMMERCIAL | -rw-r--r-- | 30.8 KB |
configure | -rwxr-xr-x | 221.4 KB |
configure.bat | -rw-r--r-- | 3.7 KB |
header.BSD | -rw-r--r-- | 2.0 KB |
header.FDL | -rw-r--r-- | 1.2 KB |
header.LGPL | -rw-r--r-- | 1.9 KB |
header.LGPL-ONLY | -rw-r--r-- | 958 bytes |
qtbase.pro | -rw-r--r-- | 4.5 KB |
sync.profile | -rw-r--r-- | 3.0 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...