rpdesk should probably never be NULL, but it happens in rare circumstances, like csrss being terminated.