diff options
author | Ritt Konstantin <ritt.ks@gmail.com> | 2011-01-21 15:28:49 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2011-01-21 15:30:22 (GMT) |
commit | 3539af42ca847e628c325a2069b72284b597d617 (patch) | |
tree | 6b65816802c48a4ef9ab5476ab0b299157ba26bc /src/corelib/kernel/qsharedmemory_win.cpp | |
parent | f129fd72752aa0ac088837b9f70b22621e9d3b83 (diff) | |
download | Qt-3539af42ca847e628c325a2069b72284b597d617.zip Qt-3539af42ca847e628c325a2069b72284b597d617.tar.gz Qt-3539af42ca847e628c325a2069b72284b597d617.tar.bz2 |
fix error reporting on detach()
before, we returned too early :)
Merge-request: 1018
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Diffstat (limited to 'src/corelib/kernel/qsharedmemory_win.cpp')
-rw-r--r-- | src/corelib/kernel/qsharedmemory_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qsharedmemory_win.cpp b/src/corelib/kernel/qsharedmemory_win.cpp index 85600a2..5293f45 100644 --- a/src/corelib/kernel/qsharedmemory_win.cpp +++ b/src/corelib/kernel/qsharedmemory_win.cpp @@ -124,8 +124,8 @@ bool QSharedMemoryPrivate::cleanHandle() { if (hand != 0 && !CloseHandle(hand)) { hand = 0; - return false; setErrorString(QLatin1String("QSharedMemory::cleanHandle")); + return false; } hand = 0; return true; |