summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfilesystemwatcher_symbian.cpp
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2011-06-10 19:23:55 +0100
committerShane Kearns <shane.kearns@accenture.com>2011-06-13 14:08:26 +0100
commit9f5809d921f3380c36f482e66184039ec0b0ea93 (patch)
tree302a2b9ab3dd887e10de9ac58355bea8d72024ee /src/corelib/io/qfilesystemwatcher_symbian.cpp
parent978dd42d80730fea26ba02303bb65904cfdbadb5 (diff)
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/corelib/io/qfilesystemwatcher_symbian.cpp')
-rw-r--r--src/corelib/io/qfilesystemwatcher_symbian.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/io/qfilesystemwatcher_symbian.cpp b/src/corelib/io/qfilesystemwatcher_symbian.cpp
index 6e5e91114c..63cc4f1ce6 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();