Fix CreateFileMapping() error handling
authorPeter Kümmel <syntheticpp@gmx.net>
Fri, 22 Feb 2013 08:58:41 +0000 (09:58 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 28 Feb 2013 07:16:03 +0000 (08:16 +0100)
commit1a8f67938c4146614fec3788c7868dc1a314cc84
tree11878d1a9587e864009ad8fa27bf6b68acef0140
parentf3f60743551936e3d06f7f5c8bb2c76eab6d536c
Fix CreateFileMapping() error handling

CreateFileMapping() returns NULL in case of an error.
The patch corrects the wrong testing on INVALID_HANDLE_VALUE, and sets
NULL for invalid handles.

Change-Id: Iaab4945ed88ee92bbf9a0871e95a5820dd1a56ed
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
src/corelib/io/qfsfileengine.cpp
src/corelib/io/qfsfileengine_win.cpp