From 77e40d1373c39c6eb3a851f8be57a843c64a8f47 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Tue, 18 Jul 2017 12:57:22 +0100 Subject: [PATCH] [syslinux] remove unwanted 'isolinux.tmp' on error * Also use a global 'temp_dir' variable and fix a small issue with Swedish translation --- res/localization/rufus.loc | 2 +- src/iso.c | 5 +++-- src/rufus.c | 12 +++++++----- src/rufus.h | 2 +- src/rufus.rc | 10 +++++----- 5 files changed, 17 insertions(+), 14 deletions(-) diff --git a/res/localization/rufus.loc b/res/localization/rufus.loc index 4401c21c..b2ecef1e 100644 --- a/res/localization/rufus.loc +++ b/res/localization/rufus.loc @@ -16412,7 +16412,7 @@ t MSG_292 "Välj den version av Windows du vill installera:" t MSG_293 "Denna version stöds inte" t MSG_294 "Denna version av Windows stöds inte längre av Rufus." t MSG_295 "Varning: Inofficiell version" -t MSG_296 "Denna version av Rufus producerades inte av original utvecklaren.\n\nÄr du säker på att du vill använda den?" +t MSG_296 "Denna version av Rufus producerades inte av originalutvecklaren.\n\nÄr du säker på att du vill använda den?" t MSG_297 "Ej komplett ISO-fil" t MSG_298 "ISO-filen du har valt matchar inte den angivna storleken: %s av data saknas!\n\nOm du har hämtat den här filen från internet, " "prova då med att ladda ned filen igen och verifiera att checksumman MD5 eller SHA stämmer överens med den officiella filen.\n\n" diff --git a/src/iso.c b/src/iso.c index 7791a036..2b468c8c 100644 --- a/src/iso.c +++ b/src/iso.c @@ -82,7 +82,6 @@ static const char* grub_dirname = "/boot/grub/i386-pc"; static const char* grub_cfg = "grub.cfg"; static const char* syslinux_cfg[] = { "isolinux.cfg", "syslinux.cfg", "extlinux.conf" }; static const char* arch_cfg[] = { "archiso_sys32.cfg", "archiso_sys64.cfg" }; -static const char* isolinux_tmp = ".\\isolinux.tmp"; static const char* isolinux_bin[] = { "isolinux.bin", "boot.bin" }; static const char* pe_dirname[] = { "/i386", "/minint" }; static const char* pe_file[] = { "ntdetect.com", "setupldr.bin", "txtsetup.sif" }; @@ -789,6 +788,8 @@ out: uprintf(" Will use '%s' for Syslinux", img_report.cfg_path); // Extract all of the isolinux.bin files we found to identify their versions for (i=0; i