diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2011-06-10 18:23:55 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2011-06-13 13:08:26 (GMT) |
commit | 9f5809d921f3380c36f482e66184039ec0b0ea93 (patch) | |
tree | 302a2b9ab3dd887e10de9ac58355bea8d72024ee /src | |
parent | 978dd42d80730fea26ba02303bb65904cfdbadb5 (diff) | |
download | Qt-9f5809d921f3380c36f482e66184039ec0b0ea93.zip Qt-9f5809d921f3380c36f482e66184039ec0b0ea93.tar.gz Qt-9f5809d921f3380c36f482e66184039ec0b0ea93.tar.bz2 |
Symbian QFileSystemWatcher: fix potential crash
An address on the stack was being passed to an asynchronous API.
This is changed to use the copy of the data on the heap.
Reviewed-by: joao
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/io/qfilesystemwatcher_symbian.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/io/qfilesystemwatcher_symbian.cpp b/src/corelib/io/qfilesystemwatcher_symbian.cpp index 6e5e911..63cc4f1 100644 --- a/src/corelib/io/qfilesystemwatcher_symbian.cpp +++ b/src/corelib/io/qfilesystemwatcher_symbian.cpp @@ -62,9 +62,9 @@ QNotifyChangeEvent::QNotifyChangeEvent(RFs &fs, const TDesC &file, failureCount(0) { if (isDir) { - fsSession.NotifyChange(ENotifyEntry, iStatus, file); + fsSession.NotifyChange(ENotifyEntry, iStatus, watchedPath); } else { - fsSession.NotifyChange(ENotifyAll, iStatus, file); + fsSession.NotifyChange(ENotifyAll, iStatus, watchedPath); } CActiveScheduler::Add(this); SetActive(); |