]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.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>
Sun, 23 Feb 2014 19:10:20 +0000 (13:10 -0600)
commit4c1b8f1e8357d85c613d779596e4079cc581d74f
treef9b82b2f80a4ea4205a4702000f63c103486cfee
parent105a060188dc6fdd4551571a966514d1a5f6815a
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>
qga/vss-win32/provider.cpp
qga/vss-win32/requester.cpp