loader: Fix vkDestroySurfaceKHR call on NULL surf
authorMark Young <marky@lunarg.com>
Mon, 17 Oct 2016 18:27:36 +0000 (12:27 -0600)
committerMark Young <marky@lunarg.com>
Mon, 17 Oct 2016 18:27:36 +0000 (12:27 -0600)
commit32792c182ed8207f183dde5ee553ab9b5afd234f
tree53cf8ea2a1a068bd28cbad092e93546c822fa788
parent9e88d2940f927fbef3ccec16e438587126077b56
loader: Fix vkDestroySurfaceKHR call on NULL surf

Thanks to Derrick Owens @ AMD for catching this bug which can
cause a null-ptr dereference while running Khronos conformance
test dEQP-VK.wsi.win32.surface.destroy_null_handle.

Change-Id: I104a890cd23615458566ec71e072e21c76e989cb
loader/wsi.c