Skip to content

Commit 8e7f269

Browse files
committed
Update swift_installer.cc
Correct the location of the temporary file creation. We would previously overwrite the source rather than the destination.
1 parent b7ae4af commit 8e7f269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platforms/Windows/CustomActions/SwiftInstaller/Sources/swift_installer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ bool replace_file(const std::filesystem::path &source,
338338
}
339339

340340
std::filesystem::path temp =
341-
std::filesystem::path(source)
341+
std::filesystem::path(destination)
342342
.replace_filename(std::wstring(reinterpret_cast<LPCWSTR>(id)));
343343

344344
RpcStringFreeW(&id);

0 commit comments

Comments
 (0)