[PATCH 1/1] advapi32: Avoid that invalid pointers cause crashes.