Juan Lang : crypt32: Don' t keep a pointer to the lower quality chains when choosing a higher quality one , otherwise they'll get double-freed.