]> git.ipfire.org Git - thirdparty/qemu.git/commit
qga: vss-win32: Use NULL as an invalid pointer for OpenEvent and CreateEvent
authorTomoki Sekiyama <tomoki.sekiyama@hds.com>
Mon, 13 Jan 2014 17:25:23 +0000 (12:25 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 25 Feb 2014 19:33:47 +0000 (13:33 -0600)
commit68e3bb1128f792407550f47de444f5814e8d18a8
tree27d93208f80caefad2a56aa60aa5b7b4c2008a6c
parentc885105bf3dc367019daba2926ecec150452a9b5
qga: vss-win32: Use NULL as an invalid pointer for OpenEvent and CreateEvent

OpenEvent and CreateEvent WinAPI return NULL when failed to open/create
events handles, instead of INVALID_HANDLE_VALUE (although their return
types are HANDLE).
This replaces INVALID_HANDLE_VALUE related to event handles with NULL.

Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com>
Reviewed-by: Gal Hammer <ghammer@redhat.com>
Reviewed-by: Yan Vugenfirer <yvugenfi@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
(cherry picked from commit 4c1b8f1e8357d85c613d779596e4079cc581d74f)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/vss-win32/provider.cpp
qga/vss-win32/requester.cpp