Skip to content

Commit

Permalink
Use uUnique=0 in GetTempFileNameA
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarbenjamin committed Aug 6, 2023
1 parent 12026b4 commit 26bdd65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qsieve/factor.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ void qsieve_factor(fmpz_factor_t factors, const fmpz_t n)
flint_printf("Exception (qsieve_factor). GetTempPathA() failed.\n");
flint_abort();
}
if (GetTempFileNameA(temp_path, "siqs", /*uUnique*/ TRUE, qs_inf->fname) == 0)
/* uUnique = 0 means the we *do* want a unique filename (obviously!). */
if (GetTempFileNameA(temp_path, "siq", /*uUnique*/ 0, qs_inf->fname) == 0)
{
flint_printf("Exception (qsieve_factor). GetTempFileNameA() failed.\n");
flint_abort();
Expand Down

0 comments on commit 26bdd65

Please sign in to comment.