Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaloop committed Oct 25, 2023
2 parents cadd63b + a7c87ce commit 33d1fef
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ep_setup/ep_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -988,11 +988,14 @@ int WINAPI wWinMain(
{
bOk = DeleteFileW(wszPath);
}
PathRemoveExtensionW(wszPath);
wcscat_s(wszPath, MAX_PATH, L".prev");
if (FileExistsW(wszPath))
if (bOk)
{
bOk = DeleteFileW(wszPath);
PathRemoveExtensionW(wszPath);
wcscat_s(wszPath, MAX_PATH, L".prev");
if (FileExistsW(wszPath))
{
bOk = DeleteFileW(wszPath);
}
}
if (bOk)
{
Expand Down

0 comments on commit 33d1fef

Please sign in to comment.