We should check if destRect or srcRect are NULL before dereferencing them. Based on the float version, a NULL destRect should result in an InvalidParameter return, and a NULL srcRect should be passed through as NULL.