[PATCH v2] quartz: Fix crash when pVisible is NULL.