crypt32: Set correct return value if CryptMemAlloc fails.